Hello, I own an survival server with random items but i want to make skript only affects people who have turned on /toggle command if you can help me i would very appreciate it!
This is my current skript:
every 10 seconds in world "world":
if {randomItems} is not set:
add 1 of (random item out of all items) to inventory of players
command /toggle:
trigger:
if {randomItems} is not set:
message "&d&lI&f&lTopics &8» &fYou have &cdisabled &frandom items!"
set {randomItems} to false
else:
message "&d&lI&f&lTopics &8» &fYou have &aenabled &frandom items!"
delete {randomItems}
If you can help me thanks again!