Prefix GUI [skript} icon

Prefix GUI [skript} -----

a GUI that lets you change your prefix in game.



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

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.

Code (Text):
 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
Code (Text):
youtube.prefix
after we do that next we need to go down a bit to our function

Code (Text):
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
Code (Text):
{rank::%player's uuid%}
Resource Information
Author:
----------
Total Downloads: 103
First Release: Aug 8, 2023
Last Update: Aug 8, 2023
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings