Code:
command /prestigebook [<player>]:
permission: prestige.book
trigger:
give 1 of written book named "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki" to arg-1
on join:
if {prestige.%player's uuid%} is not set:
set {prestige.%player's uuid%} to 0
on chat:
send "%player's display name% &7[&f%{prestige.%player's uuid%}%&7] &f: %message%" to player
on right click with written book:
if name of tool of player is "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki":
send "&a>> You have &e&lPrestiged&a! <<"
set {_t} to {prestige.%player's uuid%} +1
send " &7[&8%{prestige.%player's uuid%}%&7] --> &7[&a%{_t}%&7]"
add 1 to {prestige.%player's uuid%}
broadcast "&6&l%player% &4&lhas prestiged!"
remove held item from player
the players cant see other player prestige on chat and only see self and if I type on chat its duplicate my name one prestige and second one none prestige I want to help me
Last edited: