This plugin will allow a player to remove an empty glass bottle after s/he consumed the pot/drink. A player can toggle recycling mode (on or off).
This is to show it's working on Spigot1.8.8 with BottleRecycling v.2.1.0
Recycling stacked potions.
Commands:
/recycle help : displayer the help menu
/recycle reload : reload the config.yml
/recycle : toggle recycling mode on/off.
Permissions:
bottlerecycling.recycle : allows you to use /recycle command to toggle the recycling mode.
bottlerecycling.reload : allows you to use /recycle reload command.
Installation: You just put BottleRecycling.jar file into your server's plugins folder.
Configuration: [dropdown=config.yml]
[/font][/color][/font][/size][/color]
# This is a template config file # define your parameter and its value like: Messages: ErrorMsg : "&c[BottleRecycling] : Some error occured." Refunded : "&a[BottleRecycling] $ %money% has been refunded." RecycleOn : "&a[BottleRecycling] You're now recycling a bottle." RecycleOff : "&a[BottleRecycling] You're no longer recycling a bottle."
HelpMessages: banner: msg: "=== &e[&aBottleRecycling Commands List (%version%)&e] &r===" help: msg: "&a/recycle help : displays this help menu." reload: msg: "&a/recycle reload : reloads config file." permission: "bottlerecycling.reload" debug: msg: "&a/recycle debug : turn on / off the debug mode." permission: "bottlerecycling.debug"
# if DefaultMode is true, the bottle recycling mode is turned on by default. # otherwise, a player would need to turn it on via toggle command. DefaultMode: true
AllowRefund: false # you can specify the command you wish to execute upon recycle: # example 1 "eco give %player% 1" -> give palyer $1 # example 2 "te add %player% 1" -> give palyer 1 token (TokenEnchant) # example 3 "exp give %player% 1" -> give palyer 1 exp RefundCommand: "eco give %player% 1"
# if your server has plugins, which handles ItemConsumeEvent prior to this plugin # you might want to adjust this option (LOWEST, LOW, NORMAL, HIGH, HIGHEST, MONITOR) ItemConsumeEventPriority: NORMAL
# If you specify invalid worlds, regions, bottle recycling will not be processed even it is toggled on. #InvalidWorlds: # - plotworld
#InvalidRegions: # - prison
#if this option is not specified, GLASS_BOTTLE and BOWL will be automatically added. RecycleType: - GLASS_BOTTLE - BOWL