Rod of discord permission change.
This commit is contained in:
parent
bd123bc97a
commit
2b8e40ad0e
2 changed files with 5 additions and 3 deletions
|
|
@ -3339,11 +3339,10 @@ namespace TShockAPI
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!isNPC && !args.Player.Group.HasPermission(Permissions.tp))
|
||||
if (!isNPC && !args.Player.Group.HasPermission(Permissions.rod))
|
||||
{
|
||||
args.Player.SendErrorMessage("You do not have permission to teleport.");
|
||||
Main.player[id].Teleport(new Vector2(Main.player[id].position.X, Main.player[id].position.Y), style);
|
||||
NetMessage.SendData(65, -1, -1, "", 0, (float)id, Main.player[id].position.X, Main.player[id].position.Y, style);
|
||||
args.Player.Teleport(args.TPlayer.position.X, args.TPlayer.position.Y);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -210,6 +210,9 @@ namespace TShockAPI
|
|||
[Description("User can use /spawn.")]
|
||||
public static readonly string spawn = "tshock.tp.spawn";
|
||||
|
||||
[Description("User can use the Rod of Discor.")]
|
||||
public static readonly string rod = "tshock.tp.rod";
|
||||
|
||||
// tshock.world nodes
|
||||
|
||||
[Description("Allows you to edit the spawn.")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue