Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /tp [<text>] [<text>] [<text>]:
- permission: mineplex.mod
- permission message: &7Coeback &0» &7This requires Permission Rank &6&lMOD.
- trigger:
- if arg-1 is not set:
- send "&9Teleport> &7Commands List:"
- send "&6/tp <target> &7Teleport to Player &6Mod"
- send "&4/tp here <player> &7Teleports Player to Self &4lAdmin"
- send "&4/tp <player> <target> &7Teleports Player to Player &4lAdmin"
- send "&4/tp all &7Teleports All to Self &4&lADMIN"
- else:
- if arg-2 is not set:
- if arg-1 is set:
- if arg-1 is not "all":
- if arg-1 is not "here":
- if arg-1 parsed as player is online:
- teleport player to arg-1 parsed as player's location
- set {_t} to arg-1 parsed as player
- send "&9Teleport &0» &7Teleported to &e%{_t}%&7."
- stop
- else:
- send "&9Teleport &0» &7Locating &e%arg-1%&7..."
- wait 5 seconds
- send "&9Teleport &0» &7Could not locate &e%arg-1%&7."
- stop
- if arg-1 is "all":
- if player has permission "mineplex.owner":
- teleport all players to player
- send "&9Teleport&0 » &7You teleported &e%amount of players% Players &7to yourself."
- broadcast "&9Teleport&0 » &7You teleported to &e%player%&7."
- stop
- else:
- send "&7Comeback &0» &7This requires Permission Rank &4&lADMIN."
- stop
- if arg-1 is "here":
- if player has permission "mineplex.admin":
- if arg-3 is not set:
- if arg-2 is set:
- if arg-2 parsed as player is online:
- teleport arg-2 parsed as player to player's location
- send "&7Comeback &0» &7%player% teleported you to self." to arg-2 parsed as player
- set {_t} to arg-2 parsed as player
- send "&7Comeback &0» &7Teleported &e%arg-2% &7to self."
- stop
- else:
- send "&7Comeback &0» &7Locating &e%arg-2%&7..."
- wait 5 seconds
- send "&7Comeback &0» &7Could not locate &e%arg-2%&7."
- stop
- else:
- send "&7Comeback &0» &7This requires Permission Rank &4&lADMIN."
- stop
- if arg-2 is not set:
- send "&9Teleport> &7Commands List:"
- send "&6/tp <target> &7Teleport to Player &6Mod"
- send "&4/tp here <player> &7Teleports Player to Self &4Admin"
- send "&4/tp <player> <target> &7Teleports Player to Player &4Admin"
- send "&4/tp all &7Teleports All to Self &4Owner"
- if arg-3 is not set:
- if arg-2 is set:
- if player has permission "mineplex.admin":
- if arg-2 parsed as player is online:
- if arg-1 parsed as player is online:
- teleport arg-1 parsed as player to arg-2 parsed as player
- set {_t1} to arg-1 parsed as player
- set {_t} to arg-2 parsed as player
- send "&9Teleport> &e%{_t1}% &7was teleported to you." to arg-2 parsed as player
- send "&9Teleport> &7You were teleported to &e%{_t}%&7." to arg-1 parsed as player
- stop
- else:
- send "&9Teleport> &7Locating &e%arg-1%&7..."
- wait 5 seconds
- send "&9Teleport> &7Could not locate &e%arg-1%&7."
- stop
- else:
- send "&9Teleport> &7Locating &e%arg-2%&7..."
- wait 5 seconds
- send "&9Teleport> &7Could not locate &e%arg-2%&7."
- stop
- else:
- send "&7Comeback &0» &7This requires Permission Rank &4&lADMIN."
- stop
Advertisement
Add Comment
Please, Sign In to add comment