-
Notifications
You must be signed in to change notification settings - Fork 8
/
LivemapConfiguration.cs
54 lines (50 loc) · 1.82 KB
/
LivemapConfiguration.cs
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
47
48
49
50
51
52
53
54
using Rocket.API;
namespace NEXIS.Livemap
{
public class LivemapConfiguration : IRocketPluginConfiguration
{
public bool LivemapDebug;
public bool LivemapEnabled;
public bool MySQLEnabled;
public int LivemapRefreshInterval;
public bool WorldChatEnabled;
public bool PlayerHidingEnabled;
public bool IncludePlayerSkills;
public bool ShowCommandsInChat;
public string PlayerDefaultSteamAvatar;
public string ConnectionAddress;
public string WebsiteURI;
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
LivemapDebug = false;
LivemapEnabled = true;
MySQLEnabled = false;
LivemapRefreshInterval = 10;
WorldChatEnabled = true;
PlayerHidingEnabled = true;
IncludePlayerSkills = false;
ShowCommandsInChat = false;
PlayerDefaultSteamAvatar = "images/avatars/unknown.png";
ConnectionAddress = "0.0.0.0:27016";
WebsiteURI = "http://yourwebsite.com/livemap/api/livemap.api.php";
// Database Settings
DatabaseHost = "127.0.0.1";
DatabaseUser = "unturned";
DatabasePass = "password";
DatabaseName = "unturned";
DatabasePort = 3306;
DatabaseTableLivemapServer = "livemap_server";
DatabaseTableLivemapData = "livemap_data";
DatabaseTableLivemapChat = "livemap_chat";
}
}
}