-
Notifications
You must be signed in to change notification settings - Fork 8
/
Configuration.cs
93 lines (90 loc) · 3 KB
/
Configuration.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
using Rocket.API;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LIGHT
{
public class Configuration : IRocketPluginConfiguration
{
public string DatabaseAddress;
public string DatabaseUsername;
public string DatabasePassword;
public string DatabaseName;
public string DatabaseTableName;
public string DatabaseTableGroup;
public string DatabaseKit;
public int DatabasePort;
public bool LPXEnabled;
public bool IncomeEnabled;
public bool KitsEnabled;
public bool KitCooldownApplyToAll;
public bool KitCooldownResetOnDeath;
public ushort IncomeInterval;
public bool AutoRemoveEnabled;
public int AutoRemoveDays;
public bool AutoAddDefault;
public string DatabaseCarOwners;
public bool AllowCarOwnerShip;
public bool DriveUnownedCar;
public double LicencePrice;
public double FuelPrice;
public double RepairPrice;
public bool CanBuyItems;
public bool CanBuyVehicles;
public bool CanSellItems;
public bool QualityCounts;
public bool EnableShop;
public bool EnableAutoDBUpdate;
public string DatabaseItemShop;
public string DatabaseVehicleShop;
public bool SaleEnable;
public int SalePercentage;
public int minNextSaleTime;
public int maxNextSaleTime;
public int SaleTime;
public bool AllowAuction;
public string DatabaseAuction;
public void LoadDefaults()
{
DatabaseAddress = "localhost";
DatabaseUsername = "root";
DatabasePassword = "password";
DatabaseName = "unturned";
DatabaseTableName = "LPX";
DatabaseTableGroup = "LPXGroups";
DatabaseKit = "Kits";
DatabasePort = 3306;
LPXEnabled = true;
IncomeEnabled = true;
KitsEnabled = false;
KitCooldownApplyToAll = true;
KitCooldownResetOnDeath = false;
IncomeInterval = 900;
AutoRemoveEnabled = false;
AutoRemoveDays = 30;
AutoAddDefault = false;
DatabaseCarOwners = "Car";
AllowCarOwnerShip = true;
DriveUnownedCar = false;
LicencePrice = 100.00;
FuelPrice = 1.3;
RepairPrice = 2;
CanBuyItems = true;
CanBuyVehicles = false;
CanSellItems = true;
QualityCounts = true;
EnableShop = true;
EnableAutoDBUpdate = false;
DatabaseItemShop = "ItemShop";
DatabaseVehicleShop = "VehicleShop";
SaleEnable = false;
SalePercentage = 15;
minNextSaleTime = 600;
maxNextSaleTime = 1200;
SaleTime = 3;
AllowAuction = false;
DatabaseAuction = "AuctionShop";
}
}
}