Added permissions for spawn and home, since they really should be split.
This commit is contained in:
parent
d4709a31f1
commit
140c73be0a
2 changed files with 7 additions and 2 deletions
|
|
@ -146,9 +146,9 @@ namespace TShockAPI
|
||||||
ChatCommands.Add(new Command(Permissions.cfg, SetSpawn, "setspawn") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.cfg, SetSpawn, "setspawn") { AllowServer = false });
|
||||||
ChatCommands.Add(new Command(Permissions.grow, Grow, "grow") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.grow, Grow, "grow") { AllowServer = false });
|
||||||
ChatCommands.Add(new Command(Permissions.item, Item, "item", "i") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.item, Item, "item", "i") { AllowServer = false });
|
||||||
ChatCommands.Add(new Command(Permissions.tp, Home, "home") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.home, Home, "home") { AllowServer = false });
|
||||||
ChatCommands.Add(new Command(Permissions.canpartychat, PartyChat, "p") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.canpartychat, PartyChat, "p") { AllowServer = false });
|
||||||
ChatCommands.Add(new Command(Permissions.tp, Spawn, "spawn") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.spawn, Spawn, "spawn") { AllowServer = false });
|
||||||
ChatCommands.Add(new Command(Permissions.tp, TP, "tp") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.tp, TP, "tp") { AllowServer = false });
|
||||||
ChatCommands.Add(new Command(Permissions.tphere, TPHere, "tphere") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.tphere, TPHere, "tphere") { AllowServer = false });
|
||||||
ChatCommands.Add(new Command(Permissions.tpallow, TPAllow, "tpallow") { AllowServer = false });
|
ChatCommands.Add(new Command(Permissions.tpallow, TPAllow, "tpallow") { AllowServer = false });
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,11 @@ namespace TShockAPI
|
||||||
|
|
||||||
[Description("User can force the server to Christmas mode.")] public static readonly string xmas;
|
[Description("User can force the server to Christmas mode.")] public static readonly string xmas;
|
||||||
|
|
||||||
|
[Description("User can use /home.")] public static readonly string home;
|
||||||
|
|
||||||
|
[Description("User can use /spawn.")] public static readonly string spawn;
|
||||||
|
|
||||||
|
|
||||||
static Permissions()
|
static Permissions()
|
||||||
{
|
{
|
||||||
foreach (var field in typeof (Permissions).GetFields())
|
foreach (var field in typeof (Permissions).GetFields())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue