I dont know what is wrong with the skript it isent working pls help
command /punish [<offline player>] [<text>]:
aliases: /p
permission: ban.use
permission message: &cNo Permission.
trigger:
if arg-1 is not set:
send "&7[&cBan&7] &c/ban &7<player> [reason]"
if arg-1 is set:
open chest with 2 rows named "&b&lSelect Ban Reason" to player
wait 1 tick
format slot 0 of player with iron sword named "&aHack client #1" with lore "" to close then run [make player execute command "/tempban %arg-1% 35d &c&lYou have been tempbanned for Hack client"]
format slot 1 of player with lead named "&aHack client #2" with lore "" to close then run [make player execute command "/ban %arg-1% &c&lYou have been banned for Hack client"]
format slot 2 of player with ghast tear named "&aBreaking other rules #1 (15 days ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/tempban %arg-1% 15d &c&lYou have been tempbanned for %arg-2% "]
format slot 3 of player with speed potion named "&aBreaking other rules #2 (50 days ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/litebans:ban %arg-1% Speed"]
format slot 4 of player with apple named "&aBreaking other rules #3 (Perm ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/ban %arg-1% &c&lYou have been banned for %arg-2%"]
format slot 5 of player with compass named "&aBan Evasion" with lore "" to close then run [make player execute command "/banip %arg-1% &c&lYou have benn banned for ban Evasion"]
format slot 6 of player with daylight sensor named "&aChat offence #1" with lore "" to close then run [make player execute command "/warn %arg-1% &c&lYou have been warned for chat offence."]
format slot 7 of player with melon slice named "&aChat offence #2" with lore "" to close then run [make player execute command "/mute %arg-1% &c&lYou have been muted for chat offence"]
format slot 8 of player with boat named "&aInfo" with lore "&7Click to see all punishments info about %arg-1%" to close then run [make player execute command "/punishinfo %arg-1%"]
format slot 9 of player with red wool named "&aCancel" with lore "" to close
command /punish [<offline player>] [<text>]:
aliases: /p
permission: ban.use
permission message: &cNo Permission.
trigger:
if arg-1 is not set:
send "&7[&cBan&7] &c/ban &7<player> [reason]"
if arg-1 is set:
open chest with 2 rows named "&b&lSelect Ban Reason" to player
wait 1 tick
format slot 0 of player with iron sword named "&aHack client #1" with lore "" to close then run [make player execute command "/tempban %arg-1% 35d &c&lYou have been tempbanned for Hack client"]
format slot 1 of player with lead named "&aHack client #2" with lore "" to close then run [make player execute command "/ban %arg-1% &c&lYou have been banned for Hack client"]
format slot 2 of player with ghast tear named "&aBreaking other rules #1 (15 days ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/tempban %arg-1% 15d &c&lYou have been tempbanned for %arg-2% "]
format slot 3 of player with speed potion named "&aBreaking other rules #2 (50 days ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/litebans:ban %arg-1% Speed"]
format slot 4 of player with apple named "&aBreaking other rules #3 (Perm ban)" with lore "Reason %arg-2%" to close then run [make player execute command "/ban %arg-1% &c&lYou have been banned for %arg-2%"]
format slot 5 of player with compass named "&aBan Evasion" with lore "" to close then run [make player execute command "/banip %arg-1% &c&lYou have benn banned for ban Evasion"]
format slot 6 of player with daylight sensor named "&aChat offence #1" with lore "" to close then run [make player execute command "/warn %arg-1% &c&lYou have been warned for chat offence."]
format slot 7 of player with melon slice named "&aChat offence #2" with lore "" to close then run [make player execute command "/mute %arg-1% &c&lYou have been muted for chat offence"]
format slot 8 of player with boat named "&aInfo" with lore "&7Click to see all punishments info about %arg-1%" to close then run [make player execute command "/punishinfo %arg-1%"]
format slot 9 of player with red wool named "&aCancel" with lore "" to close