twogz

Untitled

Jul 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. on any movement:
  2. if y coordinate of location of player <= 0:
  3. cancel event
  4. teleport player to {spawn}
  5.  
  6. command /setspawn:
  7. trigger:
  8. if player does not have permission "admin.setspawn":
  9. message "&cYou must be admin or higher to use this command."
  10.  
  11. else:
  12. set {spawn} to location of player
  13. message "&aThe spawn has been set to your current location."
  14.  
  15. command /cake:
  16. description: Recieve a cake, but you can only do this once per minute!
  17. permission: cake.is_a_lie
  18. executable by: players
  19. trigger:
  20. set {_waited} to difference between {cake.%player%.lastused} and now
  21. if {_waited} is less than a 3 seconds:
  22. message "&cYou must wait &e%difference between a minute and {_waited}% &cbefore you can use this command again!"
  23. stop
  24. player doesn't have space for a cake:
  25. message "You do not have enough space in your inventory to hold the cake!"
  26. stop
  27. give a cake to the player
  28. set {cake.%player%.lastused} to now
Advertisement
Add Comment
Please, Sign In to add comment