Jump to content

suffix skript


vitalResource

Recommended Posts

i sent this to someone an hour ago so i might aswell release it- keep in mind this was first used on the server insistings

Command:

Quote

command suffix [<text>]:
    permission: permission.node
    trigger:
        if arg-1 is not set:
            send title "&dDONATOR PERK" with subtitle "&7Suffix removed from your chat messages." to player
            set {suffix::%player's uuid%} to "&7"
        if arg-1 is set:
            send title "&dDONATOR PERK" with subtitle "&7Suffix set to: %colored arg-1%" to player
            set {suffix::%player's uuid%} to colored arg-1

Make sure to update the permission node to whatever permission you want them to have to use the suffix, and make sure to add the custom chat addon below or they won't be able to see their suffix when they talk.

Custom Chat Addon:

Quote

&8[&7%{suffix::%player's uuid%}%&8]

Set suffix to "/suffix" if not set:

Quote

join:
    if {suffix::%player's uuid%} is not set:
        set {suffix::%player's uuid%} to "/suffix"

This will update everyone who joins the server who has not got an actively set suffix

Example if done correctly:

 image.png.ba5cc7926f0ca025bf1e5cdce8cbff9a.png

 

dont ask me to help you if you cant get it to work, figure it out yourself, im busy making my server

Insisting Discord » https://discord.gg/64dJQmnBW9

banner1.jpg


I now go by the name vitalResource rather than Nookn.

First joined in 2015 under the alias of Nookn.

Primarily known during my time in Minehut from Prohost.gs (oct. 2015) till around 2019 Minehut where I took a longer hiatus until Feb 2021, where I came back and still participating actively in events.

Link to comment
Share on other sites

Nice, skript! However, you can save storage instead of doing

join:
    if {suffix::%player's uuid%} is not set:
        set {suffix::%player's uuid%} to "/suffix"

do this to your suffix thingy
 

&8[&7%{suffix::%player's uuid%} ? "/suffix"%&8]

You may need to double up your quotes tho

 

like.gif.653e1b24da93a6ca10eaf5b04e7f0242.gif

Likes are appreciated ❤️

 

Username: SuperOrca

Discord: Link to Profile

Rank: [VIP]

Joined Minehut: August 10, 2017

Joined Forums: June 10, 2019

 

Experienced in Python, Java (mainly spigot), Javascript (node.js, basics of react.js), and Web Development. DM on discord me if you want a custom discord bot for your server (i'm bored).

Link to comment
Share on other sites

Very pog! Keep it up!

image.png.6b83388bece6fb7d874e120f33c8dd96.png


IGN ➣ Pickey ( Soon ) 
Joined MineHut ➣ January 7th 2019
Joined Forums ➣ January 11th 2021
 
Admin on NotedGens
Manager on NotedGens
Developer on Cropied
Developer on Gennow (Genable)

==========================================
Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )
Retired From: InvadedLands ( Moderator )
Retired From:  MineTime ( Sr.Moderator )
Retired From: Hero Mines ( Helper )
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...