BottleRecycling - good for getting rid of bowls in KitPvP! 1.5.2

Useful for KitPvP!! You can get rid of the empty bottle/bowl after you drink the pot/soup.

  1. checks bottle/soup item in hand.

    vk2gpz
    checks bottle/soup item in hand.
  2. added extra NP sanity check.

    vk2gpz
    added extra NP sanity check.
  3. added RecycleType option

    vk2gpz
    added RecycleType option

    Code (Text):

    #if this option is not specified, GLASS_BOTTLE and BOWL will be automatically added.
    RecycleType:
      - GLASS_BOTTLE
      - BOWL
     
  4. added handling of NPE.

    vk2gpz
    added handling of NPE.
  5. added "DefaultMode" option

    vk2gpz
    added "DefaultMode" option.

    Code (Text):

    # 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
     
    Elijah likes this.
  6. supports stacked potion bottles.

    vk2gpz
    supports stacked potion bottles.
  7. added bottle/soup checking

    vk2gpz
    added bottle/soup checking
  8. Refund option is now implemented

    vk2gpz
    If you set "AllowRefund: true", when the empty bottle/bowl is recycled, the player get refund.

    Refund is executed through the command specified in the config.yml. You can refund in $, token,exp, etc. depending on the command you use.