diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index d79e49a2..f78da40e 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -376,7 +376,9 @@ namespace TShockAPI private static bool HandleSendTileSquare(GetDataHandlerArgs args) { - + if (args.Player.Group.HasPermission(Permissions.allowclientsideworldedit)) + return false; + var size = args.Data.ReadInt16(); var tileX = args.Data.ReadInt32(); var tileY = args.Data.ReadInt32(); diff --git a/TShockAPI/Permissions.cs b/TShockAPI/Permissions.cs index 8ff95f71..5618ed98 100644 --- a/TShockAPI/Permissions.cs +++ b/TShockAPI/Permissions.cs @@ -175,6 +175,9 @@ namespace TShockAPI [Description("Bypass Server Side Inventory checks")] public static readonly string bypassinventorychecks; + + [Description("Allow unrestricted Send Tile Square usage, for client side world editing")] + public static readonly string allowclientsideworldedit; static Permissions()