Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setspawn:
- trigger:
- if player have permissions "essentails.setspawn" or "*" or "essentials.*":
- set {essentials::spawn} to location of player
- command /spawn:
- trigger:
- teleport player to {essentials::spawn}
- on command:
- set {_command.all} to "%command% %arguments%"
- set {_command::*} to {_command.all} split at " "
- loop {_command::*}:
- add loop-value to {_argumenty::*}
- if {_argumenty::1} is "c":
- if distance between location of player and {essentials::spawn} is greater than 20:
- cancel event
- send "&cJestes zbyt blisko granicy, żeby zalozyc gildie"
- else:
- stop
Add Comment
Please, Sign In to add comment