diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 4ef1e42c..a2443e91 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -5194,11 +5194,11 @@ namespace TShockAPI TSPlayer playerToGod; if (args.Parameters.Count > 0) { - if (!args.Player.Group.HasPermission(Permissions.godmodeother)) - { - args.Player.SendErrorMessage("You do not have permission to god mode another player!"); - return; - } + if (!args.Player.Group.HasPermission(Permissions.godmodeother)) + { + args.Player.SendErrorMessage("You do not have permission to god mode another player!"); + return; + } string plStr = String.Join(" ", args.Parameters); var players = TShock.Utils.FindPlayer(plStr); if (players.Count == 0) diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index 687f474d..e9d943f3 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -349,8 +349,8 @@ namespace TShockAPI [Description("Player recovers health as damage is taken. Can be one shotted.")] public static readonly string godmode = "tshock.godmode"; - [Description("User can godmode other players")] - public static readonly string godmodeother = "tshock.godmode.other"; + [Description("User can godmode other players")] + public static readonly string godmodeother = "tshock.godmode.other"; [Description("Player can chat")] public static readonly string canchat = "tshock.canchat";