PvPLevels Tutorial - Historical

Applied By MathiasMC: Oct 10, 2018 at 3:33 AM

PvPLevels Tutorial
Config.yml
Code (Text):
# Check for updates when the plugin is enabled (Recommended to leave as default)
update-check: true
Code (Text):
# (false = SQLite : true = MySQL)
mysql:
  use: false
  host: localhost
  port: 3306
  database: database
  username: username
  password: password
# Saves the cached player data to the database
# interval is in minutes
save:
  use: true
  interval: 60
Code (Text):
# Hooks (Adds a hook to the plugin)
hooks:
  PlaceholderAPI: true
  MVdWPlaceholderAPI: true
  LeaderHeads: true
  Legendchat: true
  ListAPI: true
Code (Text):
# Placeholders (Return placeholders from the plugin)
placeholders:
  ListAPI: true
Code (Text):
# Example: if you killed the player MathiasMC 4 times you can not xp get from that player for 150 seconds
kill-session:
  use: true
  amount: 4
  time: 150
Code (Text):
# Coming in version 86.0
# manual: current system
# automatic: automatic level system
# increment: lastXpRequirement + lastXpRequirement * increment
# max: the max level
xp-mode:
  mode: manual
  automatic:
    max: 100
    xp:
      player:
        increment: 0.3
        permission: pvplevels.xp.player
        worlds:
          use: false
          list:
          - world
        worldguard:
          use: false
          regions:
          - region
        commands:
        - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou killed &b{pvplevels_type}
          &eand you got &6{pvplevels_xp_get} &exp you need {pvplevels_xp_needed} xp
          to level {pvplevels_level_to}
      zombie:
        increment: 0.3
        permission: pvplevels.xp.zombie
        worlds:
          use: false
          list:
          - world
        worldguard:
          use: false
          regions:
          - region
        commands:
        - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou killed &b{pvplevels_type}
          &eand you got &6{pvplevels_xp_get} &exp you need {pvplevels_xp_needed} xp
          to level {pvplevels_level_to}

Code (Text):
# Placeholder pvplevels_group
groups:
  list:
    '0': Bad
    '1': Noob
    '2': Better
    '3': Good
    '4': Pro
    '5': Super
  none: None
Code (Text):
# Level down commands
level-down:
  xp-lose:
    '0':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
    '1':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
    '2':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
    '3':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
    '4':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
  xp-decay:
    '0':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
    '1':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
    '2':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
    '3':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
    '4':
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got to a lower level :(
Code (Text):
# PvPTop excluded list
pvptop:
  kills:
    excluded:
    - uuid
  deaths:
    excluded:
    - uuid
  xp:
    excluded:
    - uuid
  level:
    excluded:
    - uuid
  killstreak:
    excluded:
    - uuid
Code (Text):
# Here you can customize the placeholder xp_progress_style
xp-progress-style:
  symbol: '\u25A0'
  xp: '&2'
  none: '&c'
  amount: 10
Code (Text):
# To create the levels run the command as console: /pvplevels generate <amount>
# WARNING THIS WILL OVERWRITE ALL DATA IN levels.yml
# Calculation: current level xp * 2 + random number between min and max
# random: will add an random command from the list every current random level + random number between min and max
generate:
  commands:
  - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou are now level {pvplevels_level_to}
  xp:
    static: 16
    min: 1
    max: 10
  random:
    use: true
    commands:
    - give {pvplevels_player} diamond
    - give {pvplevels_player} emerald
    - give {pvplevels_player} gold
    - give {pvplevels_player} iron
    - give {pvplevels_player} coal
    xp:
      min: 1
      max: 35
Code (Text):
# If you disable prefix it will try to replace the placeholders from other chat plugins (example: Essentials)
prefix:
  use: true
  list:
    default:
      permission: pvplevels.prefix.default
      worlds:
        use: false
        list:
        - world
      worldguard:
        use: false
        regions:
        - region
      list:
        '0':
          prefix: '&e[&7Default&e] &f[&aLvl &6{pvplevels_level}&f]'
          chat: '&e[&7Default&e] &f[&aLvl &6{pvplevels_level}&f] &b{pvplevels_player} &f{pvplevels_text}'
        '1':
          prefix: '&e[&7Default&e] &1[&aLvl &6{pvplevels_level}&1]'
          chat: '&e[&7Default&e] &1[&aLvl &6{pvplevels_level}&1] &b{pvplevels_player} &f{pvplevels_text}'
        '2':
          prefix: '&e[&7Default&e] &2[&aLvl &6{pvplevels_level}&2]'
          chat: '&e[&7Default&e] &2[&aLvl &6{pvplevels_level}&2] &b{pvplevels_player} &f{pvplevels_text}'
        '3':
          prefix: '&e[&7Default&e] &3[&aLvl &6{pvplevels_level}&3]'
          chat: '&e[&7Default&e] &3[&aLvl &6{pvplevels_level}&3] &b{pvplevels_player} &f{pvplevels_text}'
        '4':
          prefix: '&e[&7Default&e] &4[&aLvl &6{pvplevels_level}&4]'
          chat: '&e[&7Default&e] &4[&aLvl &6{pvplevels_level}&4] &b{pvplevels_player} &f{pvplevels_text}'
        '5':
          prefix: '&e[&7Default&e] &5[&aLvl &6{pvplevels_level}&5]'
          chat: '&e[&7Default&e] &5[&aLvl &6{pvplevels_level}&5] &b{pvplevels_player} &f{pvplevels_text}'
      none:
        prefix: '&e[&7Default&e] &f[&aLvl &6{pvplevels_level}&f]'
        chat: '&e[&7Default&e] &f[&aLvl &6{pvplevels_level}&f] &b{pvplevels_player} &f{pvplevels_text}'
Code (Text):
# time is in minutes
xp-decay:
  use: false
  list:
    default:
      permission: pvplevels.xp.decay.default
      time: 30
      levels:
        '0':
          min: 10
          max: 30
          commands:
          - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eDecay: You have
            lost {pvplevels_xp_lost} xp'
        '1':
          min: 10
          max: 30
          commands:
          - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eDecay: You have
            lost {pvplevels_xp_lost} xp'
        '2':
          min: 10
          max: 30
          commands:
          - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eDecay: You have
            lost {pvplevels_xp_lost} xp'
        '3':
          min: 10
          max: 30
          commands:
          - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eDecay: You have
            lost {pvplevels_xp_lost} xp'
        '4':
          min: 10
          max: 30
          commands:
          - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eDecay: You have
            lost {pvplevels_xp_lost} xp'
        '5':
          min: 10
          max: 30
          commands:
          - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eDecay: You have
            lost {pvplevels_xp_lost} xp'
Code (Text):
# break: how many block blocks before you will get xp
block-break:
  use: false
  list:
    coal_ore:
      min: 1
      max: 5
      permission: pvplevels.block.break.coal.ore
      break: 5
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got {pvplevels_xp_get} xp for breaking {pvplevels_block_broken} {pvplevels_block_type}
    iron_ore:
      min: 5
      max: 10
      permission: pvplevels.block.break.iron.ore
      break: 10
      commands:
      - pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got {pvplevels_xp_get} xp for breaking {pvplevels_block_broken} {pvplevels_block_type}
Code (Text):
# You can add your own mobs/animals here and set what you get in xp
# If spawners is set to true you will get xp from spawners
# min is the minimum xp you can get and max is the maximum xp you can get
xp:
  player:
    min: 1
    max: 3
    permission: pvplevels.xp.player
    worlds:
      use: false
      list:
      - world
    worldguard:
      use: false
      regions:
      - region
    commands:
    - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou killed &b{pvplevels_type} &eand you got &6{pvplevels_xp_get} &exp you need {pvplevels_xp_needed} xp to level {pvplevels_level_to}'
  zombie:
    min: 1
    max: 3
    spawners: false
    permission: pvplevels.xp.zombie
    worlds:
      use: false
      list:
      - world
    worldguard:
      use: false
      regions:
      - region
    commands:
    - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou killed &b{pvplevels_type} &eand you got &6{pvplevels_xp_get} &exp you need {pvplevels_xp_needed} xp to level {pvplevels_level_to}'
Code (Text):
# You can add your own mobs/animals here and set what you lose in xp
# Other then mobs/animals/player? here is a list
# block_explosion, drowning, fall, falling_block, fire, fire_tick, lava, lightning
# magic, poison, projectile, starvation, suffocation, suicide, thorns, void, wither, other
# If you use all it overwrites all others
xp-lose:
  player:
    min: 1
    max: 3
    permission: pvplevels.xp.player
    worlds:
      use: false
      list:
      - world
    worldguard:
      use: false
      regions:
      - region
    commands:
    - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &cYou have lost {pvplevels_xp_lost} xp'
  zombie:
    min: 1
    max: 3
    spawners: false
    permission: pvplevels.xp.zombie
    worlds:
      use: false
      list:
      - world
    worldguard:
      use: false
      regions:
      - region
    commands:
    - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &cYou have lost {pvplevels_xp_lost} xp'
Code (Text):
# Set where you can get kills and deaths
player:
  kills:
    worlds:
      use: false
      list:
      - world
    worldguard:
      use: false
      regions:
      - region
  deaths:
    worlds:
      use: false
      list:
      - world
    worldguard:
      use: false
      regions:
      - region
Code (Text):
# Run commands when getting kills
rewards:
  kills:
    use: true
    list:
      default:
        '2':
          permission: pvplevels.rewards.kills.default
          worlds:
            use: false
            list:
            - world
          worldguard:
            use: false
            regions:
            - region
          commands:
          - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got a reward because you have 2 kills!'
        '5':
          permission: pvplevels.rewards.kills.default
          worlds:
            use: false
            list:
            - world
          worldguard:
            use: false
            regions:
            - region
          commands:
          - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have got a reward because you have 5 kills!'
Code (Text):
# Join commands
join:
  use: true
  list:
    default:
      permission: pvplevels.join.default
      delay: 5
      worlds:
        use: false
        list:
        - world
      worldguard:
        use: false
        regions:
        - region
      commands:
      - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &e{pvplevels_player} Welcome back!'
    vip:
      permission: pvplevels.join.vip
      delay: 5
      worlds:
        use: false
        list:
        - world
      worldguard:
        use: false
        regions:
        - region
      commands:
      - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &e{pvplevels_player} Welcome back vip!'
Code (Text):
# First Join commands
join-first:
  use: true
  list:
    default:
      permission: pvplevels.join.default
      delay: 5
      worlds:
        use: false
        list:
        - world
      worldguard:
        use: false
        regions:
        - region
      commands:
      - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &e{pvplevels_player} Welcome!'
    vip:
      permission: pvplevels.join.vip
      delay: 5
      worlds:
        use: false
        list:
        - world
      worldguard:
        use: false
        regions:
        - region
      commands:
      - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &e{pvplevels_player} Welcome vip!'
Code (Text):
Respawn commands
respawn:
  use: true
  list:
    default:
      permission: pvplevels.respawn.default
      delay: 0
      worlds:
        use: false
        list:
        - world
      worldguard:
        use: false
        regions:
        - region
      commands:
      - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou are back alive'
    vip:
      permission: pvplevels.respawn.vip
      delay: 0
      worlds:
        use: false
        list:
        - world
      worldguard:
        use: false
        regions:
        - region
      commands:
      - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou are back alive'
Code (Text):
# KillStreaks
killstreaks:
  use: true
  list:
    default:
      '5':
        permission: pvplevels.killstreak.default
        worlds:
          use: false
          list:
          - world
        worldguard:
          use: false
          regions:
          - region
        commands:
        - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have a killstreak of {pvplevels_killstreak}!'
      '10':
        permission: pvplevels.killstreak.default
        worlds:
          use: false
          list:
          - world
        worldguard:
          use: false
          regions:
          - region
        commands:
        - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have a killstreak of {pvplevels_killstreak}!'
      '15':
        permission: pvplevels.killstreak.default
        worlds:
          use: false
          list:
          - world
        worldguard:
          use: false
          regions:
          - region
        commands:
        - 'pvplevels message {pvplevels_player} &7[&bPvPLevels&7] &eYou have a killstreak of {pvplevels_killstreak}!'