Okay so, I'm new to skripting and i tried to make a balancebooster. I get no errors, but I can run a new balancebooster while one is enabled. I also want the balance booster to get removed after 1 hour. Can someone please help me? Btw I made a /Shop command, and when players buy the Booster they get the permission boost.balance. I also want that permission removed when they execute the command.
Code:
command /eboost <text>:
permission: boost.balance
permission message: &8[&cNight&8] &7You do not have any &9&lBalance Boosters&7! &f(&c/shop&f)
trigger:
if arg-1 is not set:
message "&7Usage: &c/eboost balance"
else if arg-1 is "balance":
broadcast "&E"
broadcast "&8[&cNight&8] &71 hour &9&lBalance Booster &7has been activated by &c%player%! &f(&c/shop&f)"
broadcast "&E"
make console execute command "sk disable killermoney"
make console execute command "sk enable killermoney2"
set {balanceboost.%player%} to "yes"
if {balanceboost%player%} is yes:
stop
send "&8[&cNight&8] &7There is already a running &9&lBalance Booster&7."
Last edited: