Skip to content
home/templates/chat ranks (/setrank)
moderationBeginnermc 1.20.x – 1.21.x15 lines

chat ranks (/setrank)

custom chat prefix per player. /setrank <player> <rank>. visible in chat as colored brackets before the name.

vanilla Skriptno addons required.
chat-ranks.sk15 lines
command /setrank <player> <text>:
    permission: rank.admin
    trigger:
        set {rank.%uuid of arg-1%} to arg-2
        send "&aSet &e%arg-1%&a's rank to &f%arg-2%&a." to player

on chat:
    cancel event
    set {_prefix} to {rank.%uuid of player%} ? "Member"
    broadcast "&8[&f%{_prefix}%&8] &f%player%&7: &r%message%"

command /myrank:
    trigger:
        send "&eYour rank: &f%{rank.%uuid of player%} ? \"Member\"%" to player

get it running

chat-ranks.sk · 15 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    chat-ranks.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/chat-ranks.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload chat-ranks
that's it — your script is live. hop in-game to try it.
/ related templates

more moderation templates

comments