forked from RestoreMonarchyPlugins/Teleportation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeleportationConfiguration.cs
More file actions
35 lines (33 loc) · 1.11 KB
/
TeleportationConfiguration.cs
File metadata and controls
35 lines (33 loc) · 1.11 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
using Rocket.API;
namespace RestoreMonarchy.Teleportation
{
public class TeleportationConfiguration : IRocketPluginConfiguration
{
public string MessageColor { get; set; }
public double TPACooldown { get; set; }
public double TPADelay { get; set; }
public double TPADuration { get; set; }
public bool AllowCave { get; set; }
public bool AllowRaid { get; set; }
public double RaidDuration { get; set; }
public bool AllowCombat { get; set; }
public double CombatDuration { get; set; }
public bool UseUnsafeTeleport { get; set; }
public bool CancelOnMove { get; set; }
public float MoveMaxDistance { get; set; }
public void LoadDefaults()
{
MessageColor = "gray";
TPACooldown = 90;
TPADelay = 3;
TPADuration = 90;
AllowCave = false;
AllowRaid = false;
RaidDuration = 30;
AllowCombat = false;
CombatDuration = 20;
UseUnsafeTeleport = false;
CancelOnMove = true;
}
}
}