Skip to content

XP Section

MathiasMC edited this page Jul 13, 2020 · 11 revisions

How to create an xp group

type is an event: zombie, iron_ore, stone, skeleton..

group is if you want to have separate event per permission

name is the name of the placeholder when you get xp

customName is if it should target only that customName of an type (PlaceholderAPI Support)

min, max random between

permission the permission the player must have if a player does not have that it will check for the next group

worlds (not required) you can remove that if you will enable all worlds

commands is run on getting that event (it is not run if player level is found in level-commands)

level-commands (not required) separate commands per level

xp:
  type:
    group:
      name: customName
      min: 1
      max: 10
      permission: permission
      worlds:
      - world
      commands:
      - 'command'
      level-commands:
        1:
        - 'command'

XP Lose

xp:
  type:
    group:
      xp-lose:
        min: 5
        max: 20
        commands:
          level:
          - 'command'
          lose:
          - 'command'

If you want to lose xp by another event you can use these in the type:

block_explosion, contact, cramming, custom, dragon_breath, drowning, dryout, entity_attack, entity_explosion, entity_sweep_attack, fall, falling_block, fire, fire_tick, fly_into_wall, hot_floor, lava, lightning, magic, melting, poison, projectile, starvation, suffocation, suicide, thorns, void, wither, all

Require specific items to get xp (Supports PlaceholderAPI)

xp:
  type:
    group:
      item:
        items:
          iron_sword:
            name: '&eIron Sword'
            lores:
            - '&aTest lore'
            - '&aTest lore 2'
          wooden_sword:
            name: '&eWooden Sword'
            lores:
            - '&aTest lore'
            - '&aTest lore 2'
          diamond_pickaxe:
            name: '&eDiamond Pickaxe'
            lores:
            - '&aTest lore'
            - '&aTest lore 2'

Give items with name and lore or use any other plugin

/pvplevels item set <slot> <true, false override> <player> <item> <amount> <name\nlore\nlore2>
/pvplevels item add <player> <item> <amount> <name\nlore\nlore2>

Example:

If you are using server version 1.12 and below you will need to use ID

/pvplevels item add <player> (iron_sword, 267:0) 1 &eIron Sword\n&aTest lore\n&aTest lore 2
/pvplevels item add <player> (wooden_sword, 268:0) 1 &eWooden Sword\n&aTest lore\n&aTest lore 2
/pvplevels item add <player> (diamond_pickaxe, 278:0) 1 &eDiamond Pickaxe\n&aTest lore\n&aTest lore 2

Clone this wiki locally