-
Notifications
You must be signed in to change notification settings - Fork 12
/
ZaupHomeCommandConfiguration.cs
45 lines (42 loc) · 1.81 KB
/
ZaupHomeCommandConfiguration.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 System;
using System.Collections.Generic;
using Rocket.API;
using Rocket.Core;
namespace ZaupHomeCommand
{
public class HomeCommandConfiguration : IRocketPluginConfiguration
{
public bool Enabled;
public string DisabledMsg;
public string NoBedMsg;
public string NoVehicleMsg;
public bool TeleportWait;
public List<HomeGroup> WaitGroups;
public string TeleportMsg;
public string FoundBedNowWaitMsg;
public bool MovementRestriction;
public string FoundBedWaitNoMoveMsg;
public string UnableMoveSinceMoveMsg;
public string NoTeleportDiedMsg;
public void LoadDefaults()
{
Enabled = true;
DisabledMsg = "I'm sorry {0}, but the home command has been disabled.";
NoBedMsg = "I'm sorry {0}, but I could not find your bed.";
NoVehicleMsg = "I'm sorry {0}, but you can't be teleported while inside a vehicle.";
TeleportWait = false;
WaitGroups = new List<HomeGroup>() {
new HomeGroup{Id = "all", Wait = 5},
new HomeGroup{Id = "admin", Wait = 0},
new HomeGroup{Id = "moderator", Wait = 3},
new HomeGroup{Id = "default", Wait = 5}
};
TeleportMsg = "You were sent back to your bed.";
FoundBedNowWaitMsg = "I have located your bed {0}, please wait for {1} seconds to be teleported.";
MovementRestriction = false;
FoundBedWaitNoMoveMsg = "I have located your bed {0}, now don't move for {1} seconds while I prepare you for teleport.";
UnableMoveSinceMoveMsg = "I'm sorry {0}, but you moved. I am unable to teleport you.";
NoTeleportDiedMsg = "Sorry {0}, unable to finish home teleport as you died.";
}
}
}