forked from mrtwidget/Livemaps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLivemapConfiguration.cs
More file actions
46 lines (42 loc) · 1.51 KB
/
LivemapConfiguration.cs
File metadata and controls
46 lines (42 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using Rocket.API;
namespace NEXIS.Livemap
{
public class LivemapConfiguration : IRocketPluginConfiguration
{
public int LivemapRefreshInterval;
public bool WorldChatEnabled;
public bool PlayerHideEnabled;
public bool PlayerHideCooldownEnabled;
public int PlayerHideDuration;
public int PlayerHideCooldownDuration;
public string PlayerDefaultSteamAvatar;
public string DatabaseHost;
public string DatabaseUser;
public string DatabasePass;
public string DatabaseName;
public int DatabasePort;
public string DatabaseTableLivemapServer;
public string DatabaseTableLivemapData;
public string DatabaseTableLivemapChat;
public void LoadDefaults()
{
// General Settings
LivemapRefreshInterval = 15;
WorldChatEnabled = true;
PlayerHideEnabled = true;
PlayerHideCooldownEnabled = true;
PlayerHideDuration = 300;
PlayerHideCooldownDuration = 600;
PlayerDefaultSteamAvatar = "images/avatars/unknown.png";
// Database Settings
DatabaseHost = "localhost";
DatabaseUser = "unturned";
DatabasePass = "password";
DatabaseName = "unturned";
DatabasePort = 3306;
DatabaseTableLivemapServer = "livemap_server";
DatabaseTableLivemapData = "livemap_data";
DatabaseTableLivemapChat = "livemap_chat";
}
}
}