šŸš€Rankups & Prestiges

Coral features an amazing rankups and prestiges module, using super-fast technology to ensure users can rankup to any amount without affecting server performance.

Settings

The following settings can be found within you CoralPrison/modules/rankups/configs/rankups.yml. An in-depth explanation of each configurable option has been provided down below, for your ease of access.

rankup-type: "AUTOMATIC" #MANUAL | AUTOMATIC
rankup-currency: "vault" #vault | tokens | playerpoints | experience
prestige-currency: "vault" #vault | tokens | playerpoints | experience
default-rank: 1 #Goes by index
max-rank: 100000 #any long number
max-prestige: 1000000 #any long number
base-cost: 1
cost-increase: 100
prestige-base-cost: 1
prestige-cost-increase: 100
automatic-prefix-color: "&6&l#&e&l"
prestige-prefix-color: "&3&l#&b&l"

The rankup-type: can have 2 modes, being AUTOMATIC or MANUAL. If the manual mode is selected, you will have the ability to configure ranks exactly to your liking, with custom names and ID's e.g Rank A, Rank B, Rank C etc. This can be altered further down in the same config, please scroll down to the manual mode section in this wiki if you require any assistance. If the automatic mode is selected, all you need specify is the default-rank:, max-rank:, and the automatic-prefix-color:. As self explanatory, the default-rank: option should specify the rank you would like all users to have on join, this should typically remain at 1, whereas the max-rank: option should specify the maximum rank users are able to rank up to. Prefix colours which you set are used throughout the module, within the messages and also action bar. It is important to note that this is a prefix meaning the rank number will be displayed after what has been set in the config.

Rankups and prestiges can take any currency which is either currently supported by AbyssLib or made using the in built economy module for coral. This should be specified in the rankup-currency: or prestige-currency:. Both base-cost and cost-increase work the same for prestiges and rankups, where the base cost represents the initial amount needed to rankup/prestige to the first level, and cost increase signifies the amount by which the cost increases with each rank/prestige.

HINT: Values such as base-cost: and cost-increase: must be specified regardless of the mode selected.

Prestige Settings

Coral allows you determine what happens to a players rank once the player has prestiged. This can be edited in CoralPrisons/modules/rankups/configs/rankups.yml under the following section:

reset-rank-on-prestige:
    enabled: false
    increase-max-rank-by: 5

If the reset rank on prestige is enabled, the players rank will reset to 0 after they have reached the appropriate prestige. The value for increase-max-rank-by: specifies how much the max rank should be increased by, which is attainable by the user after they have prestiged.

Manual Rankups

If you would like your rankups to have custom names you may do so by switching from automatic rankups to manual rankups. To configure a rank using the manual mode, scroll down to the manual: section in your rankups.yml. Whilst there you should follow the format below to create a rank:

"A": #id 1
    name: "&a&lA"

All fields here can be custom named, and do not need to follow the pattern A,B,C. First you should enter a custom key naming it whatever you like, and under it you should enter a name: field. The value specified here will be used throughout the rankup module, in various messages as well as the action bar. You may create as many ranks as you like. It is important to note that each rank you create, will be given a numerical ID internally, indexed from 1, which you may use for rankup rewards.

Rewards

With coral you have the ability to send rewards to players if htey meet the rank or prestige required. This can be done within either rankup-rewards: or prestige-rewards:, depending on your needs, contained in CoralPrison/modules/rankups/configs/rankup.yml. Here you can add rewards for any rank or prestige by simply following the format below:

"3": #ID of the rankup/prestige
    - "give %player% diamond 1" # All of the commands for the id milestone

If you are using AUTOMATIC mode for rankups, the id specified must be between the default rank and the max rank. If you are using manual mode, this will be the id which is internally generated as explained in the Manual Rankups section. Under the ID you should specify a list of commands to run when the user progresses to said rank. These will be run by the console, and %player% will be replaced with the players username. You may specify as many commands as you like, and set up rewards for as many ranks as you like.

Configuration Files

configs/rankups.yml
rankup-type: "AUTOMATIC" #MANUAL | AUTOMATIC
rankup-currency: "vault" #vault | tokens | playerpoints | experience
prestige-currency: "vault" #vault | tokens | playerpoints | experience
default-rank: 1 #Goes by index
max-rank: 100000 #any long number
max-prestige: 1000000 #any long number
base-cost: 1
cost-increase: 100
prestige-base-cost: 1
prestige-cost-increase: 100
automatic-prefix-color: "&6&l#&e&l"
prestige-prefix-color: "&3&l#&b&l"

reset-rank-on-prestige:
    enabled: false
    increase-max-rank-by: 5

rankup-rewards:
    "3": #ID of the rankup
        - "give %player% diamond 1" # All of the commands for the id milestone
    "1000": #ID of the rankup
        - "give %player% emerald 1" # All of the commands for the id milestone
    "10000": #ID of the rankup
        - "give %player% diamond_block 1" # All of the commands for the id milestone
    "100000": #ID of the rankup
        - "give %player% emerald_block 1" # All of the commands for the id milestone
    "1000000": #ID of the rankup
        - "give %player% nether_star 1" # All of the commands for the id milestone\

prestige-rewards:
    "3": #ID of the prestige
        - "give %player% diamond 1" # All of the commands for the id milestone
    "1000": #ID of the prestige
        - "give %player% emerald 1" # All of the commands for the id milestone
    "10000": #ID of the prestige
        - "give %player% diamond_block 1" # All of the commands for the id milestone
    "100000": #ID of the prestige
        - "give %player% emerald_block 1" # All of the commands for the id milestone
    "1000000": #ID of the prestige
        - "give %player% nether_star 1" # All of the commands for the id milestone
manual:
    "A": #id 1
        name: "&a&lA"
    "B": #id 2
        name: "&b&lB"
    "C": #id 3.. etc...
        name: "&c&lC"
configs/settings.yml
command:
    name: "rankup"
    aliases:
        - "rank"
        - "rankups"
        - "coralrankup"
        - "coralrankups"

prestige-command:
    name: "prestige"
    aliases:
        - "pres"
        - "prestiges"
        - "coralprestige"
        - "coralprestiges"
lang.yml
messages:
    "progress-action-bar":
        action-bar:
            enabled: true
            value: "&e&l%old-id% &f&lā†’ &e&l%new-id% &8&l[&r%bar%&8&l]&r"
    "prestige-admin-help":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&6&m------------------------------------------"
                - " "
                - "&e&lCoral&6&lPrisons &8&lā†’ &ePrestiges Module"
                - "&7&oMade by &f&oRelocation#0001&7&o."
                - " "
                - "&7<> = Required"
                - "&7[] = Optional"
                - " "
                - "&e&lADMIN COMMANDS:"
                - "&e&lā†’ &7/prestiges set <player> <id>"
                - "&e&lā†’ &7/prestiges give <player> <amount>"
                - "&e&lā†’ &7/prestiges take <player> <amount>"
                - " "
                - "&e&lPLAYER COMMANDS:"
                - "&6&lā†’ &e/prestiges"
                - "&6&lā†’ &e/prestiges max"
                - "&6&lā†’ &e/prestiges amount <amount>"
                - "&6&lā†’ &e/prestiges togglebar"
                - "&6&lā†’ &e/prestiges info"
                - "&6&lā†’ &e/prestiges help"
                - " "
                - "&6&m------------------------------------------"
    "prestige-player-help":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&6&m------------------------------------------"
                - " "
                - "&e&lCoral&6&lPrisons &8&lā†’ &ePrestiges Module"
                - "&7&oMade by &f&oRelocation#0001&7&o."
                - " "
                - "&7<> = Required"
                - "&7[] = Optional"
                - " "
                - "&e&lCOMMANDS:"
                - "&6&lā†’ &e/prestiges"
                - "&6&lā†’ &e/prestiges max"
                - "&6&lā†’ &e/prestiges amount <amount>"
                - "&6&lā†’ &e/prestiges togglebar"
                - "&6&lā†’ &e/prestiges info"
                - "&6&lā†’ &e/prestiges help"
                - " "
                - "&6&m------------------------------------------"
    "admin-help":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&6&m------------------------------------------"
                - " "
                - "&e&lCoral&6&lPrisons &8&lā†’ &eRankups Module"
                - "&7&oMade by &f&oRelocation#0001&7&o."
                - " "
                - "&7<> = Required"
                - "&7[] = Optional"
                - " "
                - "&e&lADMIN COMMANDS:"
                - "&e&lā†’ &7/rankups set <player> <id>"
                - "&e&lā†’ &7/rankups give <player> <amount>"
                - "&e&lā†’ &7/rankups take <player> <amount>"
                - " "
                - "&e&lPLAYER COMMANDS:"
                - "&6&lā†’ &e/rankup"
                - "&6&lā†’ &e/rankup max"
                - "&6&lā†’ &e/rankup amount <amount>"
                - "&6&lā†’ &e/rankup togglebar"
                - "&6&lā†’ &e/rankup info"
                - "&6&lā†’ &e/rankup help"
                - " "
                - "&6&m------------------------------------------"
    "player-help":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&6&m------------------------------------------"
                - " "
                - "&e&lCoral&6&lPrisons &8&lā†’ &eRankups Module"
                - "&7&oMade by &f&oRelocation#0001&7&o."
                - " "
                - "&7<> = Required"
                - "&7[] = Optional"
                - " "
                - "&e&lCOMMANDS:"
                - "&6&lā†’ &e/rankup"
                - "&6&lā†’ &e/rankup max"
                - "&6&lā†’ &e/rankup amount <amount>"
                - "&6&lā†’ &e/rankup togglebar"
                - "&6&lā†’ &e/rankup info"
                - "&6&lā†’ &e/rankup help"
                - " "
                - "&6&m------------------------------------------"
    "rank-info":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&6&m---------------------------------------"
                - " "
                - "&e&lCoral&6&lPrisons &8&lā†’ &eRankup Statistics"
                - " "
                - "&e&lINFORMATION:"
                - "&e&lā†’ &7Rank: &f%rank%"
                - "&e&lā†’ &7Prestige: &f#%prestige%"
                - "&e&lā†’ &7Rankup Rewards: &f%claimed%/%max-claimed%"
                - "&e&lā†’ &7Prestige Rewards: &f%claimed-prestige%/%max-claimed-prestige%"
                - " "
                - "&6&m---------------------------------------"
    "bar-enabled":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have &eenabled&7 the rankup action bar."
    "bar-disabled":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&c&lCoral&4&lPrisons &8&lā†’ &7You have &cdisabled&7 the rankup action bar."
    "ranked-up":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have ranked up &e%times%x&7 to rank &e%id%&7 for &e$%cost%&7."
    "prestiged":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have prestiged &e%times%x&7 to prestige &e%id%&7 for &e$%cost%&7."
    "given-prestiges":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have given &e%player% %times%x&7 prestige's they are now prestige &e%rank%&7."
    "prestiges-given":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have been given &e%times%x&7 prestige. You are now prestige &e%rank%&7."
    "taken-prestiges":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have took &e%times%x&7 prestige's from &e%player%&7. They are now prestige &e%rank%&7."
    "prestiges-taken":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have had &e%times%x&7 prestiges removed. You are now prestige &e%rank%&7."
    "set-prestiges":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have set &e%player%'s&7 prestige to &e%rank%&7."
    "prestiges-set":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7Your prestige has been set to &e%rank%&7."
    "given-ranks":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have given &e%player% %times%x&7 rank's they are now rank &e%rank%&7."
    "ranks-given":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have been given &e%times%x&7 ranks. You are now rank &e%rank%&7."
    "taken-ranks":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have took &e%times%x&7 rank's from &e%player%&7. They are now rank &e%rank%&7."
    "ranks-taken":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have had &e%times%x&7 ranks removed. You are now rank &e%rank%&7."
    "set-rank":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You have set &e%player%'s&7 rank to &e%rank%&7."
    "rank-set":
        sound:
            enabled: true
            value: "BLOCK_NOTE_PLING"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7Your rank has been set to &e%rank%&7."
    "max-rank":
        sound:
            enabled: true
            value: "FIZZ"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&c&lCoral&4&lPrisons &8&lā†’ &7You are already at the &cmaximum rank&7."
    "max-prestige":
        sound:
            enabled: true
            value: "FIZZ"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&c&lCoral&4&lPrisons &8&lā†’ &7You are already at the &cmaximum prestige&7."
    "not-enough-max-prestige":
        sound:
            enabled: true
            value: "FIZZ"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&c&lCoral&4&lPrisons &8&lā†’ &7You don't have enough to prestige anymore."
    "not-enough":
        sound:
            enabled: true
            value: "FIZZ"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&e&lCoral&6&lPrisons &8&lā†’ &7You need &c$%cost%&7 to perform this action."
    "not-enough-max-rankup":
        sound:
            enabled: true
            value: "FIZZ"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&c&lCoral&4&lPrisons &8&lā†’ &7You don't have enough to rankup anymore."
    "no-permission":
        sound:
            enabled: true
            value: "FIZZ"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&c&lCoral&4&lPrisons &8&lā†’ &7You don't have &4permission&7 to do this."
    "cannot-prestige":
        sound:
            enabled: true
            value: "FIZZ"
            volume: 1
            pitch: 1
        message:
            enabled: true
            value:
                - "&c&lCoral&4&lPrisons &8&lā†’ &7You cannot &cprestige&7 until you have reached the &cmax rank&7."

Last updated