Nerd, that will stack up the effect and it will add +1 in every tick so it will lags the server. Also, the effect won't be removed from the player if he doesn't have the talisman anymore, lmao.
command /addperms [<text>] [<text>]:
permission: *
trigger:
if arg-1 is set:
if arg-2 is set:
make console execute command "/lp group %arg-1% permission set %arg-2% true"
else:
send "&cSpecific a permission."
else:
send "&cSpecific a group."
Hardcoded + using SkQuery's GUI which is so bad, I suggest to just set it like this
command /grant [<player>] [<text>]:
trigger:
if arg-1 is set:
if arg-2 is set:
make console execute command "/lp user %arg-1% parent set %arg-2%" # For LuckPerms
else:
send "&cSpecific a rank."
else:
send "&cSpecific a player."
command /lockdown [<text>]:
permission: *
trigger:
if arg-1 is "on":
broadcast "" and "&b&lDeltaSmp &r&c&lThe lockdown is now &aon" and ""
execute console command "/whitelist on"
loop all players:
if loop-player doesn't have permission "*":
kick loop-player
else if arg-1 is "off":
broadcast "" and "&b&lDeltaSmp &r&c&lThe lockdown is now &coff" and ""
execute console command "/whitelist off"
else if arg-1 is not "off" or "on":
message "&cUsage: &7/lockdown on/off"
You could just do "else" instead of adding lines.. For example:
command /talisman:
trigger:
give player 1 grass named "&2&lGrass Talisman"
every tick:
loop all players:
if loop-player is holding a grass named "&2&lGrass Talisman":
apply speed without any particles to the loop-player
apply health boost 3 without any particles to the loop-player
else:
remove speed from loop-player
remove health boost from loop-player