Hi,
I want to make a /staff command that loops all items from my inventory and removes it and adds some tools to my inventory. And after you /staff again (disable staff-mode) you should get all your loop-items back but idk how
My Code:
I want to make a /staff command that loops all items from my inventory and removes it and adds some tools to my inventory. And after you /staff again (disable staff-mode) you should get all your loop-items back but idk how
My Code:
Code:
command /staff:
permission: staff
permission message: &4&lError, &chier heb jij geen permissies voor!
trigger:
if {staff.%player%} is not set:
send "&f%player% &7heeft staff-mode &a&oAANGEZET" to player
set player's gamemode to creative
set player's flight state to true
set {staff.%player%} to true
hide player from all players
loop all items in the player's inventory: <--- loop
remove loop-item from the player <--- loop
else:
delete {staff.%player%}
send "&f%player% &7heeft staff-mode &c&oUITGEZET" to player
stop