Sueta
DR

DroppedXPItem

0.1

When a player dies, their XP drops as a item where they died. Anyone can then pickup their XP

·Plugin

When a player dies, the XP they lose drops on the ground as a item.
This configurable item, is then up for grabs by any other players.

  • Change the item, item display name, lore and the custom name text that shows on the item when on the ground.
  • Change be set to award XP when a player picks up a DXI item or when a player uses a DXI item.
  • Play a sound to player, when awarded XP from a DXI item.
  • Set minimum amount of xp need for a DXI Item to dropped.
  • Set a maximum amount of XP that can drop.
  • Show or hide Custom text over the item when on the ground.
  • Change the message sent to players when XP is awarded from a DXI Item.
  • Built in placeholders that can be used in all text/messages.


placeholders:
@playername
- shows the name of the player that died/dropped the xp item.
@droppedxp - shows the amount of xp that was dropped/contained in the item.

commands:
There is no commands.

permissions:
By default op's will not drop DXI items.
DroppedXPItem.bypass:
default: op
description: Player will not drop xp as DroppedXPItem.

By default, all players can pickup/use DXI items.
DroppedXPItem.awardxp:
default: true
description: Allows player to pickup/use DroppedXPItem.

Example config.yml

Settings:
  # Color Codes & Unicodes can be used for all text.
  # Example. \u00A7b\u00A7m\u00A7l---\u00A7r\u00A78\u00A7m\u00A7l[--\u00A7r \u00A7a &[email protected] &7XP Bottle \u00A7r\u00A78\u00A7m\u00A7l--]\u00A7b\u00A7m\u00A7l---
  # Example. '&b&m&l-----&r&8&m&l[--&r &[email protected] &7XP Bottle&r&8&m&l--]&b&m&l-----'
 
  # Placeholders.
  # Use any of the placeholders below in any text, that placeholder value will get replaced
  # with its corresponding value.
  # @playername - shows the name of the player that died/dropped the xp item.
  # @droppedxp - shows the amount of xp that was dropped/contained in the item.
 
  # Enable or Disable usage of dxi.
  Enabled: true
  # Show Custom name text above the item when item is on the ground.
  Show Custom Name: true
  # Text to display as custom name.
  Custom Name Text: '&[email protected] &6XP'
  # When to award xp.
  # True = xp contained in item will be given to player when they pickup the item.
  # False = player must "use" (right or left click) the item to have xp awarded to them.
  Award XP on pickup: true
  # Minimum amount of xp that has to drop when a player dies to drop a dxi item.
  # Anything lower than this amount, and a dxi will NOT be dropped.
  Minimum XP: 1
  # Maximum amount of xp a dxi can contain. If player drops more XP than this
  # the dxi item will only contain upto this value. set to -1 for no limit.
  Maximum XP: -1
 
   # Settings related to how the item looks.
  Item:
    # The material of the item.
    # Use Material names as listed
    # @ https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
    Material: 'EXP_BOTTLE'
    # Size of the item stack.
    Amount: 1
    # The Display name of the item.
    Display Name: '&b&m&l-----&r&8&m&l[--&r &[email protected] &7XP Bottle&r&8&m&l--]&b&m&l-----'
    # The lore text of the item.
    Lore:
    - '&bThis item contains the XP remains from when &[email protected]'
    - '&bMeet an unfortunate end.'
    - '&eClick to claim the XP contain within.'
    - '&b&m&l--------------------------'
  
  # Settings related to sounds
  Sounds:
    # Enabled this sound or not.
    # Play a sound to the player when xp is awarded from a dxi item.
    Enabled: true
    # Sound file to play.
    # Use sounds names as found @ https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
    Sound: 'BLOCK_GLASS_BREAK'
    # Volume of the playing sound.
    Volume: 1.0f
    # Pitch of playing sound
    Pitch: 1.0f
    
    # Settings related to chat messages.
  Chat:
    # Enable or disable sending of chat messages..
    Enabled: true
    # Message to send to player's chat when they are awarded xp.
    # from pickingup/using a dxi item.
    XP Awarded Message:
    - '&b&m&l---------------------------'
    - ' &7You just claimed &[email protected] &7XP'
    - '&b&m&l---------------------------'

Similar projects

Plugin →