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%}
- on connect:
- if {ban.%uuid of player%} is true:
- delete {ban.%uuid of player%}
- kick player due to "&6Je bent gebanned!%nl%&3Rede: &b%{ban.reason.%uuid of player%}%"
- command /punishment [<offline player>]:
- aliases: /pu
- 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>] [<number>]:
- executable by: console
- trigger:
- if arg 1 is set:
- if arg 2 is "X-Ray":
- set {ban.player.%uuid of arg 1%} to arg 1
- set {ban.%uuid of arg 1%} to true
- set {ban.date.%uuid of arg 1%} to now
- set {ban.reason.%uuid of arg 1%} to "%arg 2%"
- set {ban.world.%uuid of arg 1%} to world of arg 1
- loop all players in world "%{ban.world.%uuid of arg 1%}%":
- send "&4<&cBanned&4> De speler: &c%{ban.player.%uuid of arg 1%}% &4is gebanned met de rede: &c%{ban.reason.%uuid of arg 1%}%" to loop-player
- kick arg 1 due to "&6Je bent gebanned!%nl%&3Rede: &b%{ban.reason.%uuid of arg 1%}%"
- launch star firework colored red and red at arg 1 timed 0.2
- wait 1 tick
- launch star firework colored orange and red at arg 1 timed 0.2
- wait 1 tick
- launch star firework colored orange and red at arg 1 timed 0.2
- wait 1 tick
- launch star firework colored orange and yellow at arg 1 timed 0.2
- wait 1 tick
- launch star firework colored orange and yellow at arg 1 timed 0.2
- wait 1 tick
- launch star firework colored yellow and green at arg 1 timed 0.2
- strike lightning at arg 1
- wait 5 ticks
- strike lightning at 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
- command /pm:
- trigger:
- execute player command "/sk reload punishment"
Add Comment
Please, Sign In to add comment