Files
nick.sk
Code
1 27
nick.sk
options:
prefix: &6[Nick]&r
command /zmiennick <text>:
trigger:
set {nick::%uuid of player%} to arg-1
set player's display name to arg-1
set player's tab list name to arg-1
send "{@prefix} Ustawiono nick na &e%arg-1%&r." to player
command /resetujnick:
trigger:
delete {nick::%uuid of player%}
set player's display name to name of player
set player's tab list name to name of player
send "{@prefix} Przywrócono domyślny nick." to player
on join:
if {nick::%uuid of player%} is set:
set player's display name to {nick::%uuid of player%}
set player's tab list name to {nick::%uuid of player%}
on chat:
if {nick::%uuid of player%} is set:
set chat format to "%{nick::%uuid of player%}%&7: &f%message%"
else:
set chat format to "%player%&7: &f%message%"