PrisonRanksX Config Ranks

Jan 6, 2019
PrisonRanksX Config Ranks
  • Here you can configure ingame ranks
    ________________________________________________________

    Config default fomat:

    Code (YAML):
    Ranks:
      <rank>
    :
        display
    : "<rankdisplayastext>"
        cost
    : <rankcostasnumber>
        nextrank
    : "<nextrankastext>"
    example:
    Code (YAML):
    Ranks:
      B
    :
        display
    : "&2[B]"
        cost
    : 25000
        nextrank
    : "C"
    FYI: the first rank cost must be 0 because its the default rank that players will get on join
    ___________________________________________________________________________
    ==== MainSection ====
    The Main Section Here is the rankname before the arrow

    Code (YAML):
    Ranks:
      A
    : <--
        ......
      B
    : <--
        .......
      C
    : <--
        .......
    _________________________________________________________________________
    ==== SubSections ====
    here i will take the rank B as an example.
    [Required]
    Code (YAML):
    display: "&a[B]"
    #the rank prefix ingame you can either use the placeholder {pranksdisplay} in any chat plugin to show the rankdisplay ingame OR use the force-display option
    ~~~
    [Required]
    Code (YAML):
    cost: 10000
    #the amount of money you need to rankup to that rank (B)
    ~~~
    [Required]
    Code (YAML):
    nextrank: "C"
    #the rank that you will be promoted to after you rankup
    ~~~
    [Optional]
    Code (YAML):
    executecmds:
    - "pex user %player% add essentials.warps.B"
    - "another command"
    #a collection of commands that will be executed after you rankup to that rank (B)
    ~~~
    [Optional]
    Code (YAML):
    broadcast:
    - "a line of text that will be sent to everyone"
    - "another line of text"
    - "third line"
    #send a broadcast to everyone in the server after you rankup..
    ~~~
    [Optional]
    Code (YAML):
    actionbar:
      interval
    : 15
      text
    :
     - "&6You have ranked up to %rankupdisplay%"
      - "&3You have ranked up to %rankupdisplay%"
      - "&eYou have ranked up to %rankupdisplay%"
    #actionbar message that will be sent to you after you rankup, it will be animated if you put more than one line, to change the animation speed use the subsection interval 15 means 15 ticks and 20 ticks = 1 second so that means 15 ticks = 0.75 seconds
    ~~~
    [Optional]
    Code (YAML):
    randomcmds:
        '1'
    :
          chance
    : 5
          commands
    :
         - forcerankup %player%
        '2'
    :
          chance
    : 20
          commands
    :
         - crate givekey %player% specialkey 1
        '3'
    :
          chance
    : 50
          commands
    :
         - eco give %player% 1000
    #random commands with chances that will be executed after you rankup according to your luck
    ~~~
    [Optional]
    Code (YAML):
    send-firework: true
      firework-builder
    :
        flicker
    : true
        trail
    : true
        effect
    :
       - STAR
        color
    :
       - BLUE
        - WHITE
        fade
    :
       - AQUA
        power
    : 1
    #a firework that will spawn in your location after you rankup, to enable this set send-firework to true, here is a list of (firework colors), the colors used in color section can also be used in fade section, Effects:
    #STAR , CREEPER, BURST, BALL, BALL_LARGE
    ~~~
    [Optional]
    Code (YAML):
    allow-prestige: true
    #allows you to prestige even if you are not at the latest rank
  • Loading...
  • Loading...