From ba73d5906a924891251cf17901307493d807ffca Mon Sep 17 00:00:00 2001 From: Patrikk Date: Mon, 20 Jun 2016 19:21:34 +0200 Subject: [PATCH] Separate item give perm from item spawn --- TShockAPI/Commands.cs | 2 +- TShockAPI/Permissions.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 2a518896..6871cef5 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -365,7 +365,7 @@ namespace TShockAPI }); #endregion #region Item Commands - add(new Command(Permissions.item, Give, "give", "g") + add(new Command(Permissions.give, Give, "give", "g") { HelpText = "Gives another player an item." }); diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index cfd88811..8f6bf446 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -165,6 +165,9 @@ namespace TShockAPI // tshock.item nodes + [Description("User can give items.")] + public static readonly string give = "tshock.item.give"; + [Description("User can spawn items.")] public static readonly string item = "tshock.item.spawn";