Sueta
PR

Prefix GUI [skript}

1.0

a GUI that lets you change your prefix in game.

·Plugin

So, I see you are interested by my prefix Gui, but let me tell you that it will not disappoint you. My Gui allows you to change your prefix in chat within a Gui run by the command /prefix.

DEPENDENTS:
skRayFall

Screenshots

upload_2023-8-7_23-22-5.png
upload_2023-8-7_23-22-19.png

In the first image you can see that I change my prefix and it changes in chat, The second image is of the Gui. The books change your prefix, and the nametag removes it.

It is a bit bothering to make new ranks.

What to change
set {rank::*} to "&6Owner", "&4Head Admin", "&cAdmin", "&bHead Builder", "&1Builder", "&aHead Mod", "&2Mod", "&eHelper", "&9Trainee", "&cYou&ftube", "&5dextromethorphan", "&1ketamine", "&7Member"
  set {rankp::*} to "owner", "srmanager", "manager", "head admin", "admin", "head builder", "builder", "head mod", "mod", "helper", "trainee", "youtube", "dextromethorphan", "ketamine", "member"

You need to change the list of {rank::*} to what you want to show up with colorcodes, the {rankp::*} does not have colorcodes but it is the permission you need to give the user to use that book, eg for youtube rank you need to give the user

youtube.prefix

after we do that next we need to go down a bit to our function

function prefixGUI(p: player):
  set metadata tag "prefix" of {_p} to chest inventory with 4 rows named "&eRanks"
  set {_slot} to 0
  loop 13 times:

change that loop 13 times to the ammount of ranks you want to show up in the Gui

if you do all that correctly it should work

If you like it please leave a good rating and if you would like to add it to a scoreboard i store the rank to

{rank::%player's uuid%}

Similar projects

Plugin →