Prefix / rank

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

DoctorHyper

Member
Jul 22, 2017
19
0
1
EX: /rank DoctorHyper00 Admin
and if no rank is set. set default rank for new people.
oh and i dont want pex.

-Thank you.
 
EX: /rank DoctorHyper00 Admin
and if no rank is set. set default rank for new people.
oh and i dont want pex.

-Thank you.
wait what?

1. Please use template...

2. Follow 1. :emoji_slight_smile:

3. Follow 2. :emoji_slight_smile:

4. Oh. and Follow 3.
 
EX: /rank DoctorHyper00 Admin
and if no rank is set. set default rank for new people.
oh and i dont want pex.

-Thank you.
code_language.skript:
variables:
    {default.%player%} = true
    {admin.%player%} = false
    
on chat:
    if {default.%player%} is true:
        cancel event
        broadcast "&f[&8Default&f] &f%player% &b>>> &f%message%"
    if {admin.%player%} is true:
        cancel event
        broadcast "&f[&aAdmin&f] &f%player% &b>>> &a%message%"
    
command /rank <player> <text>:
    usage: /rank <player> <prefix>
    trigger:
        if arg 2 is "default":
            set {default.%arg 1%} to true
            set {admin.%arg 1%} to false
            send "&a%arg 1% prefix changed to Default."
        if arg 2 is "admin":
            set {default.%arg 1%} to false
            set {admin.%arg 1%} to true
            send "&a%arg 1% prefix changed to Admin."
        else:
            send "&cInvalid prefix."
 
code_language.skript:
variables:
    {default.%player%} = true
    {admin.%player%} = false
   
on chat:
    if {default.%player%} is true:
        cancel event
        broadcast "&f[&8Default&f] &f%player% &b>>> &f%message%"
    if {admin.%player%} is true:
        cancel event
        broadcast "&f[&aAdmin&f] &f%player% &b>>> &a%message%"
   
command /rank <player> <text>:
    usage: /rank <player> <prefix>
    trigger:
        if arg 2 is "default":
            set {default.%arg 1%} to true
            set {admin.%arg 1%} to false
            send "&a%arg 1% prefix changed to Default."
        if arg 2 is "admin":
            set {default.%arg 1%} to false
            set {admin.%arg 1%} to true
            send "&a%arg 1% prefix changed to Admin."
        else:
            send "&cInvalid prefix."
Replacing chat is often bad to do for other plugins trying to add anything to chat and you've used individual variables instead of list variables.
 
Replacing chat is often bad to do for other plugins trying to add anything to chat and you've used individual variables instead of list variables.
Well, if you script the most of the server by your self, I dont get the problem?
 
Dude , I thought that it just use the classic permissions manager.
In this way , how it will support external permissions/checks from other plugins?
He didn't request that, so it's not being given.