Skip to content

levels.yml

Cervinakuy edited this page Jul 11, 2021 · 9 revisions

The leveling system adds an easy and simple way for players to challenge themselves through KitPvP.

A copy of the default levels.yml can be found here.

Index

General Settings

Commands On Level Up

Levels Section

Descriptions

OptionsExperience-To-Level-Up

The amount of experience needed to level up. Currently, this number applies to all levels equally.

File Snippet
    Experience-To-Level-Up: 100

OptionsExperience-Given-On-Kill

The amount of experience given on kill of another player.

File Snippet
    Experience-Given-On-Kill: 15

OptionsExperience-Taken-On-Death

The amount of experience removed (from the victim) upon death.

File Snippet
    Experience-Taken-On-Death: 5

OptionsMinimum-Level

The minimum level set when a player has no prior stats.

File Snippet
    Minimum-Level: 0

OptionsMaximum-Level

The maximum level. This can be set to any number, but if set to anything above 100, there must be a Level section to accompany each. Otherwise, there will be errors in console among other problems.

File Snippet
    Maximum-Level: 100

Commands-On-Level-Up

Commands run on any level up.

This section follows a typical Command format.


Levels

This section holds all the individual Level sections.

  • <level number> - the section header is the level number
    • Prefix - the prefix used in the Chat formatting for players of this level
    • Experience-To-Level-Up - an optional option which ignores the value set for Experience-To-Level-Up, and uses this value instead for this specific level
    • Commands - an optional section which includes commands to be run when a player levels up to this specific level. Follows a typical Commands section format, and also supporting the %level% placeholder which is the specific level number
Sample Level Section
    10:
      Prefix: '&7Level %level%'
      Experience-To-Level-Up: 69
      Commands:
      - 'console: say Congratulations to %player% for reaching Level %level%!'
      - 'console: give %player% diamond 1'
Clone this wiki locally