Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- {ban::%player%} = {ban::%arg 1%}
- {ban::%player%} = {ban::%loop-player%}
- {bann::%player%} = {bann::%arg 1%}
- {bann::%player%} = {bann::%loop-player%}
- command /punishment [<offline player>]:
- trigger:
- if player has permission "punishment":
- if arg 1 is set:
- open chest with 2 rows named "&4-=-=-&cBan &c%arg 1%&4-=-=-" to player
- format slot 0 of player with diamond named "&3X-Ray hacks" with lore "&7Ban voor: 3 dagen" to close then run [execute console command "/cpunishment Zeldaboy111 x-ray"]
- else:
- send "&c<Punishment> &4Doe &c/punishment [speler] &4om deze command uit te voeren."
- else:
- send "&c<Punishment> &4Je hebt onvoldoende rechten om deze command uit te voeren."
- command /cpunishment [<offline player>] [<text>]:
- executable by: console
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- set {ban::%arg 1%} to 10
- set {bann::%arg 1%} to arg 1
- kick arg 1
- ban arg 1 by reason of "&4X-Ray is niet toegestaan Banned voor: &c%{ban::%arg 1%}%"
- else:
- send "&c<CPunishment> &4Kan persoon niet bannen omdat: de &creden &4is niet opgegeven." to console
- else:
- send "&c<CPunishment> &4Kan persoon niet bannen omdat: de &cnaam &4is niet opgegeven en de &creden &4is niet opgegeven." to console
- every 1 second:
- loop all players:
- if {ban::%loop-player%} is not 0:
- remove 1 from {ban::%loop-player%}
- stop
- if {ban::%loop-player%} is 0:
- unban {bann::%loop-player%}
- delete {ban::%loop-player%}
Add Comment
Please, Sign In to add comment