-
Notifications
You must be signed in to change notification settings - Fork 8
/
VaultConfiguration.cs
45 lines (39 loc) · 1.28 KB
/
VaultConfiguration.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
using Rocket.API;
namespace NEXIS.Vaults
{
public class VaultConfiguration : IRocketPluginConfiguration
{
public bool VaultsEnabled;
public bool VaultsSaveEntireInventory;
public bool DeleteInventoryItemsOnSave;
public bool DeleteDatabaseVaultOnOpen;
public int TotalAllowedVaults;
public bool ShareVaultsAcrossServers;
public bool Debug;
public string DatabaseHost;
public string DatabaseUser;
public string DatabasePass;
public string DatabaseName;
public int DatabasePort;
public string DatabaseTable;
public void LoadDefaults()
{
// Configuration Settings
VaultsEnabled = true;
VaultsSaveEntireInventory = true;
DeleteInventoryItemsOnSave = true;
DeleteDatabaseVaultOnOpen = true;
TotalAllowedVaults = 3;
ShareVaultsAcrossServers = false;
// Debug Mode
Debug = false;
// Database Settings
DatabaseHost = "localhost";
DatabaseUser = "unturned";
DatabasePass = "password";
DatabaseName = "unturned";
DatabasePort = 3306;
DatabaseTable = "vaults";
}
}
}