My code:
running custom skript by minehut i need help its not working even tho it should
Code:
command /punish <player>:
permission: punish
trigger:
if "%arg-1%" is set:
open chest inventory with 5 rows named "&3Punish" to player
set {_menu} to current inventory of player
set {punish.player} to "%arg-1%"
set slot 13 of {_menu} to ("%arg-1%" parsed as offline player)'s skull named "&3%arg-1%"
set slot 19 of {_menu} to red wool named "&3reason for fly, xray, automine" with lore "30 day ban"
on inventory click:
if name of event-inventory = "&3Punish":
if event-item is red wool:
if name of event-item is "&3reason for fly, xray, automine":
execute console command "/tempban %{punish.player}% 30d &3fly, xray, automine"
else:
cancel eventcommand /punish <player>:
permission: punish
trigger:
if "%arg-1%" is set:
open chest inventory with 5 rows named "&3Punish" to player
set {_menu} to current inventory of player
set {punish.player} to "%arg-1%"
set slot 13 of {_menu} to ("%arg-1%" parsed as offline player)'s skull named "&3%arg-1%"
set slot 19 of {_menu} to red wool named "&3reason for fly, xray, automine" with lore "30 day ban"
on inventory click:
if name of event-inventory = "&3Punish":
if event-item is red wool:
if name of event-item is "&3reason for fly, xray, automine":
execute console command "/tempban %{punish.player}% 30d &3fly, xray, automine"
else:
cancel event
running custom skript by minehut i need help its not working even tho it should