Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. if argument 1 is "leave":
  2. if player has permission "tcoh.command.player":
  3. if {tcoh.arena.%player%} is not set:
  4. message "%{_prefix}% &cYou can not leave a game you are not in."
  5. stop
  6. if {tcoh.arena.%player%} is set:
  7. remove player from {tcoh.list.%{tcoh.arena.%player%}%::*}
  8. remove 1 from {tcoh.joinedtotal.%{tcoh.arena.%player%}%}
  9. set line 3 of {tcoh.map.SignLocation::%{tcoh.arena.%player%}%} to "%{tcoh.joinedtotal.%{tcoh.arena.%player%}%}%/%{tcoh.settings.max player requirement::*}%"
  10. message "%{_prefix}% &aYou have left from &2%{tcoh.arena.%player%}%&a."
  11. delete {tcoh.ingame.%player%}
  12. delete {tcoh.ingame.%player%::*}
  13. teleport the player to {tcoh.spawns.lobby}
  14. delete {tcoh.arena.%player%}
  15. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement