Advertisement
twogz

Untitled

Jul 26th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. command /cake:
  2. description: Recieve a cake, but you can only do this once per minute!
  3. permission: cake.is_a_lie
  4. executable by: players
  5. trigger:
  6. set {_waited} to difference between {cake.%player%.lastused} and now
  7. if {_waited} is less than a 3 seconds:
  8. message "&cYou must wait &e%difference between a minute and {_waited}% &cbefore you can use this command again!"
  9. stop
  10. player doesn't have space for a cake:
  11. message "You do not have enough space in your inventory to hold the cake!"
  12. stop
  13. give a cake to the player
  14. set {cake.%player%.lastused} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement