Sueta

EasyDrugs

1.2

A plugin for add drugs to your server!

·Plugin

DISCORD SERVER: https://discord.gg/Q9JrayV
EasyDrugs
Add drugs on your server!

Features:

  • Give effect on right-click drug
  • Send messages
  • Execute commands!

Available Commands:

  • '/ed' or '/easydrugs' - Displays information about the plugin itself
  • /ed reload - Reload the configuration file.

Permissions:

  • easydrugs.command - Allow the user to execute all subcommands of '/easydrugs'
  • easydrugs.drug.drugName - Allow the user to use the drug(specified in drugName)
  • easydrugs.bypassTimer - Allow the user to bypass the timer of drug
  • easydrugs.signs.place - Allow the user to place DrugShop sign
  • easydrugs.signs.use - Allow the user to use DrugShop sign

Signs(Requires Vault and an Economy plugin):

Config File:

drugs:
  Cocaine:
    material: SUGAR
    timer: 10
    price: 20.0
    effects:
    - 'POTION-EFFECT: SPEED 2 10'
    - 'MESSAGE: &6You''ve assumed cocaine.'
  Weed:
    material: SULPHUR
    timer: 10
    price: 20.0
    effects:
    - 'POTION-EFFECT: INCREASE_DAMAGE 1 10'
    - 'MESSAGE: &6You''ve assumed weed.'
  testDrug:
    material: LEATHER
    timer: 10 #time in Seconds
    price: 100.0
    effects:
    - 'CONSOLE-COMMAND: say %player%'
    - 'PLAYER-COMMAND: tell %player% Hi'
    - 'POTION-EFFECT: SPEED 0 10' #EFFECT - LEVEL - TIME IN SECONDS
    - 'MESSAGE: &6Test Message'

Messages File:

drug:
  timer: '&cYou''ve to wait before reuse this drug.'
  noPermissionDrug: '&cYou don''t have the permission for use this drug.'
  drugDoesntExist: '&cThe drug you''ve selected doesn''t exist'
  noMoney: '&cYou don''t have enough money for buy this drug.'
  buyedDrug: '&aYou''ve successfully buyed this drug.'

commands:
  noPermission: '&cYou don''t have the permission for use this command.'
  reloaded: '&aPlugin reloaded!'
  unknownCommand: '&cUnknown command.'

sign:
- '&e[&6DrugShop&e]' #You can change the colors of this line but don't change text
- '&eBuy'
- '&6%drug%' #You can change the colors of this line but don't change text
- '&efor &6%price%$'

Similar projects

Plugin →