Sueta
[1

[1.9.x - 1.13] CustomPlayerDrops

1.0

Setup drops of a single category of player

·Plugin

Lightweight plugin to set a player drop to a category.

How to use the plugin

There are three commands:

  • /drops add <name> <permission> [worlds]
  • /drops temove <name>
  • /drops edit <name>

Parameters between <> are required, but those between [] are optional.

The <name> parameter is the name of the category.
The <permission> parameter is the permission to be given to the player to insert it in the category.
The [worlds] parameter is used to distinguish in which worlds the custom drop will take effect, it is used as follows: (worlds=world,world_nether,world_the_end), separating each world from a comma.

config.yml
message:
  not-player: "&cOnly Players can execute this command"
  insufficient-permission: "&cYou haven't permissions"
  incorrect-usage: "&cIncorrect usage! Please use the command like this: &e{command}"
  add: "&2Created/Modified a new configuration of drops!"
  remove: "&2Removed/Modified an existent configuration of drops!"

plugin-help:
- "&b-------- &2&lCustomDrops &b--------"
- "&bParameters between <> are required, but those between [] are optional"
- "&2&l/drops add <name> <permission> [worlds] &b- Create a new configuration of drops"
- "&2&l/drops remove <name> &b- Remove an existent configuration of drops"
- "&2&l/drops edit <name> &b- Modify an existent configuration of drops"

inventory-name: "&2&lDrops"

Example of drops.yml:

drops.yml
drops:
  diamond:
    #Permission
    permission: customdrops.diamond
    #If true items will dropped only if the player has the items
    only-if-has: false
    drop-items:
    # Material/Quantity
    - DIAMOND/1
  emerald:
    permission: customdrops.emerald
    only-if-has: false
    #Worlds
    worlds:
     - world
    - world_nether
    - world_the_end
    drop-items:
    - EMERALD/1

Similar projects

Plugin →