A deal for world edit client makers to use SendTileSquare.
This commit is contained in:
parent
6aba5ca624
commit
77d3ec431e
2 changed files with 6 additions and 1 deletions
|
|
@ -376,6 +376,8 @@ namespace TShockAPI
|
||||||
|
|
||||||
private static bool HandleSendTileSquare(GetDataHandlerArgs args)
|
private static bool HandleSendTileSquare(GetDataHandlerArgs args)
|
||||||
{
|
{
|
||||||
|
if (args.Player.Group.HasPermission(Permissions.allowclientsideworldedit))
|
||||||
|
return false;
|
||||||
|
|
||||||
var size = args.Data.ReadInt16();
|
var size = args.Data.ReadInt16();
|
||||||
var tileX = args.Data.ReadInt32();
|
var tileX = args.Data.ReadInt32();
|
||||||
|
|
|
||||||
|
|
@ -176,6 +176,9 @@ namespace TShockAPI
|
||||||
[Description("Bypass Server Side Inventory checks")]
|
[Description("Bypass Server Side Inventory checks")]
|
||||||
public static readonly string bypassinventorychecks;
|
public static readonly string bypassinventorychecks;
|
||||||
|
|
||||||
|
[Description("Allow unrestricted Send Tile Square usage, for client side world editing")]
|
||||||
|
public static readonly string allowclientsideworldedit;
|
||||||
|
|
||||||
|
|
||||||
static Permissions()
|
static Permissions()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue