Bonsoir,
on join:
wait a tick
make console execute command "/nte player %player% prefix &7"
set the player's tablist name to "&7%player%"
if {Grade::First} isn't set:
set {Grade::First} to player
send "&8&l[&6&lGrade&8&l] &aVous êtes le &cpremier &ajoueur à se &2connecter &a!"
send "&8&l[&6&lGrade&8&l] &aUn petit &6grade &a? tiens prends le &e&lVIP&a."
make console execute command "/nte player %player% prefix &e&l[VIP] &e"
set the player's tablist name to "&e&l[VIP]&e %player%"
on command:
if executor is a player:
if {Grade::First} is executor:
wait 3 ticks
if "%{Grade::World::*}%" contain "%executor's world%":
make console execute command "/nte player %player% prefix &e&l[VIP] &e"
set the player's tablist name to "&e&l[VIP]&e %player%"
else:
make console execute command "/nte player %player% prefix &7"
set the player's tablist name to "&7%player%"
command /gradess [<text=help>] [<world>]:
trigger:
if arg-1 is "setworld":
if arg-2 is set:
if "%{Grade::World::*}%" doesn't contain "%arg-2%":
add "%arg-2%" to {Grade::World::*}
send "&8&l[&6&lGrade&8&l] &aLe monde &6""%arg-2%"" &aà été &2ajouté &aau grade !"
else:
send "&8&l[&6&lGrade&8&l] &cCe monde n'existe pas !"
if arg-1 is "list" or "liste":
if size of {Grade::World::*} > 0:
send "&a&lListe des mondes:"
loop {Grade::World::*}:
send "&7- %loop-value%"
if arg-1 is "delete":
if arg-2 is set:
if "%{Grade::World::*}%" contain "%arg-2%":
remove "%arg-2%" from {Grade::World::*}
send "&8&l[&6&lGrade&8&l] &aLe monde &6""%arg-2%"" à été &csupprimé &aau grade !"
else:
send "&8&l[&6&lGrade&8&l] &cCe n'est pas dans la liste !"
else:
send "&8&l[&6&lGrade&8&l] &cCe monde n'existe pas !"
if arg-1 is "help":
send "&8&lCommandes:"
send "&6/grade &b[<setworld>] [<World>] &7Permet d'ajouter un monde au grade !"
send "&6/grade &b [<list>] &7Permet d'afficher la liste des mondes !"
send "&6/grade &b[<delete>] [<World>] &7Permet de supprimer un monde au grade !"
Il te faut le plugin NametagEdit