This plugin allows players to gain tokens (for TokenEnchant) based on the number of player's actions (such as mining, woodcutting, fishing and farming).

Test server: testserver.vk2gpz.com

Commands:
  • /tokenreward help :     displays the help menu.
  • /tokenreward reload:   reloads config file.
    • permission: tokenreward.reload
  • /tokenreward debug true|false:    turn on/off the debug mode.
    • permission: tokenreward.debug

Permissions:
  • tokenreward.reload: allows you to use reload command.
  • tokenreward.debug: allows you to use debug command.
  • tokenreward.interval.X: defines how many actions (blocks/woods/fish/crops) a user needs to obtain before the next rewards.  For example. with "tokenreward.interval.20", every 20 (blocks/woods/fish/crops), a player will get token(s).
  • tokenreward.booster.X: defines the booster multiplier.  For example, with "tokenreward.booster.10", each rewarded tokens will be multiplied by 10.

How to install:
Copy TokenReward-x.x.x.jar into the plugin folder.

Configuration:

# +------------------------------------------------------------+ #
# TokenReward Configuration
# +------------------------------------------------------------+ #

# NOTE: Do NOT put tabs anywhere in the config!

Messages:
  ErrorMsg : "&c[TokenReward] : Some error occurred."
  InvalidRegion: "&c[TokenReward] : Token Reward is not available in this region (&e%region%&c) of the world (&e%world%&c)."
  InvalidWorld: "&c[TokenReward] : Token Reward is not available in this world (&e%world%&c)."
  TokenRewarded: "&aYou gained &e%amount% &atokens!"

HelpMessages:
  banner:
    msg: "=== &e[&aTokenReward Commands List (%version%)&e] &r==="
  help:
    msg: "&a/tr help : displays this help menu."
  reload:
    msg: "&a/tr reload : reloads config file."
    permission: "tokenreward.reload"
  debug:
    msg: "&a/tr debug <true|false> : turn on / off the debug mode."
    permission: "tokenreward.debug"

# adjust these event priority if those event processes from this plugin
# interfere with other plugins' event processes.
EventPriorityMap:
  BlockBreakEvent: "NORMAL"
  PlayerFishEvent: "NORMAL"

# every 10 blocks/woods/fish/farming will give a token.
DefaultInterval: 10

# rewarded token amount will be calculated as = 1 * (DefaultBooster or personal booster)
DefaultBooster: 1

# rewarded token amount will be multiplied by the level of fortune enchantment level.
ApplyFortune: true

# choices of triggering the lucky reward are
# ANY (all types)
# FISHING
# WOODCUTTING
# MINING (mining minirals)
# FARMING (harvesting crops)
Triggers:
  - MINING
  - WOODCUTTING

# these are keywords, which is associated with TEBlockExplode event.
# These keywords indicate what generated the TEBlockExplode event.
ExplosionTriggers:
  - "MineBomb"
  - "Explosive"
  - "Excavation"
  - "Laser"


# you can list type of blocks associated with mining (mineral), woodcutting (wood)
# and farming (Crop)
BlockTypes:
  Mineral:
    - DIAMOND_ORE
    - IRON_ORE
  Wood:
    - LOG
    - LOG_2
  Crop:
    - CROPS

InvalidWorlds:
  - plotworld

InvalidRegions:
  - spawn