Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if argument 1 is "leave":
- if player has permission "tcoh.command.player":
- if {tcoh.arena.%player%} is not set:
- message "%{_prefix}% &cYou can not leave a game you are not in."
- stop
- if {tcoh.arena.%player%} is set:
- remove player from {tcoh.list.%{tcoh.arena.%player%}%::*}
- remove 1 from {tcoh.joinedtotal.%{tcoh.arena.%player%}%}
- set line 3 of {tcoh.map.SignLocation::%{tcoh.arena.%player%}%} to "%{tcoh.joinedtotal.%{tcoh.arena.%player%}%}%/%{tcoh.settings.max player requirement::*}%"
- message "%{_prefix}% &aYou have left from &2%{tcoh.arena.%player%}%&a."
- delete {tcoh.ingame.%player%}
- delete {tcoh.ingame.%player%::*}
- teleport the player to {tcoh.spawns.lobby}
- delete {tcoh.arena.%player%}
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement