1. 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 comminuty!

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

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how do i fix this rank skript i made

Discussion in 'Requests' started by Madoc, Jul 9, 2022.

  1. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0
    Code (Text):
    1. options:
    2.     p: &4&lOwner
    3.    
    4. command /rank [<text>] [<offline player>] [<text>]:
    5.     permission: op
    6.     permission message: {@p} &cDon't have permission!
    7.     trigger:
    8.         if arg 1 is not set:
    9.         send "&c--------------------------------------"
    10.         send "&4/rank set <player> <rank> &8:: &7Sets a player rank"
    11.         send "&4/rank list &8:: &7Shows you ALL groups"
    12.         send "&4/rank prefix <player> <prefix> &8:: &7Sets a custom prefix for a player"
    13.         send "&4/rank reset <player> &8:: &fResets a players rank to &7&lMember"
    14.         send "&4/rank info &8:: &7Shows info about the skript"
    15.         send "&c--------------------------------------"
    16.         if arg 1 is "set":
    17.             if arg 2 is set:
    18.                 if arg 3 is "owner":
    19.                     set {rank.%arg 2%} to "&4&lOwner"
    20.                     broadcast "{@p} &6%arg 2% &eis our NEW &4&lOwner"
    21.                 if arg 3 is "co owner"
    22.                     set {rank.%arg 2%} to "&6&lco&4&lOwner"
    23.                     broadcast "{@p} &6%arg 2% &ris the &4&lOWNER&7 of &6&lthe server"
    24.                 if arg 3 is "sr-admin":
    25.                     set {rank.%player%} to "&c&lSr. Admin"
    26.                     broadcast "{@p} &6%arg 2% &7is our NEW &c&lSr. Admin"
    27.                 if arg 3 is "member":
    28.                     set {rank.%arg 2%} to "&7&lMember"
    29.             else:
    30.                 send "{@} &8Please specify a player"
    31.         if arg 1 is "prefix":
    32.             if arg 2 is set:
    33.                 if arg 3 is set:
    34.                     set {rank.%arg 2%} to "%colourd arg 3%"
    35.                     send "{@p} &cPrefix of &4arg 2% &chas been set to: &f%colourd arg 3%"
    36.                     send "{@p} &cYour prefix has been set to %colourd arg 3% &cby &4%player%" to arg 2
    37.                 else:
    38.                     "{@p} &8Please give a prefix"
    39.             else:
    40.                 "{@p} &8Please specify a player"
    41.         if arg 1 is "list":
    42.             send "&c--------------------------------------"
    43.             send "&4&lOwner &7==> &fGroup Name: &8owner"
    44.             send "&6&lHypixel &4&lOwner &7==> &fGroup Name: &8hypixel owner"
    45.             send "&7&lMember &7==> &fGroup Name: &8member"
    46.             send "&c--------------------------------------"
    47.         if arg 1 is "info":
    48.             send "&c--------------------------------------"
    49.             send "&4Skript made by Hypixel and MrPandaPresident"
    50.             send "&4Version &c1.0"
    51.             send "&c--------------------------------------"
    52.  
    53. on chat:
    54.     cancel event
    55.     broadcast "%{rank.%player}% &7%player% &8>> &fmessage"
    56.    
    57. on first join:
    58.     set {rank.%player%} to "&7&lMember"
     
  2. Neppkun

    Neppkun Member

    Joined:
    Jul 18, 2020
    Messages:
    4
    Likes Received:
    0
    In order for us to help you, you'll need to answer some base questions in your original post:

    - What is the code supposed to do?
    - What is the code doing?
    - What needs fixing?
     

Share This Page

Loading...