I have a suffix skript I rn Im trying to code it so if you have a paper named "Random Suffix Token" you should get the permission to the random selected suffix and it should be added to a list that you wont get a duplicate. For some reason its not working.
if event-item is {server_suffix_paper}:
if {_randomsuffix} is not in {player::%player%::suffixes::*}:
set {_randomsuffix} to random element of {suffix::permission::*}
execute console command "lp user %player% permission set %{_randomsuffix}% true"
add {_randomsuffix} to {player::%player%::suffixes::*}
message "Hallo"
else if {_randomsuffix} is in {player::%player%::suffixes::*}:
send "{@prefix} You already own the selected suffix"
message "Tschüs"```