Hello
is there another way to write this script ?
because this lags the server when there are +50 players
is there another way to write this script ?
because this lags the server when there are +50 players
Code:
on join:
wait 1 tick
make console execute "/set-tablist-nick %player%"
command /set-tablist-nick [<offlineplayer>]:
permission: admin
permission message: Error
trigger:
if arg 1 has the permission "perm7":
set arg 1's tablist name to "&cOwner [&e%{lv::%arg 1%}%&8]&c %arg 1%"
set arg 1's tag to "&cOwner "
stop
else if arg 1 has the permission "perm6":
set arg 1's tablist name to "&2Admin [&e%{lv::%arg 1%}%&8]&2 %arg 1%"
set arg 1's tag to "&2Admin "
stop
else if arg 1 has the permission "perm5":
set arg 1's tablist name to "&aMod [&e%{lv::%arg 1%}%&8]&a %arg 1%"
set arg 1's tag to "&aMod "
stop
else if arg 1 has the permission "perm4":
set arg 1's tablist name to "&6Helper [&e%{lv::%arg 1%}%&8]&6 %arg 1%"
set arg 1's tag to "&6Helper "
stop
else if arg 1 has the permission "perm3":
set arg 1's tablist name to "&dSVIP [&e%{lv::%arg 1%}%&8]&f %arg 1%"
set arg 1's tag to "&dSVIP "
stop
else if arg 1 has the permission "perm2":
set arg 1's tablist name to "&8VIP [&e%{lv::%arg 1%}%&8]&3 %arg 1%"
set arg 1's tag to "&8VIP "
stop
else if arg 1 has the permission "perm1":
set arg 1's tablist name to "&7Player [&e%{lv::%arg 1%}%&8]&7 %arg 1%"
set arg 1's tag to "&7"
stop