bMysteryBlocks [1.8 - 1.18] 2.0.2

Mine block until you get reward for breaking it! Great for spawns!
520401-pure-black-background-wallpaper.jpg
Type
  1. Economy
  2. Gameplay
Supported software
  1. Spigot
  2. Paper
  3. Other
Supported versions
  1. 1.8
  2. 1.9
  3. 1.10
  4. 1.11
  5. 1.12
  6. 1.13
  7. 1.14
  8. 1.15
  9. 1.16
  10. 1.17
  11. 1.18
Tags
Tags
blocks mining mining rewards mysteryblocks rewards
Title.png

Description.png

» Hightly configurable and lightweight plugin for rewarding player that mines a specific block. Create and unlimited amount of blocks that will give player rewards after mining.​
» Each block can do different actions on mine, destroy or reset.​
» Rewards can be simply configurated per place.​

Features.png

» Holograms (Supported CMI and HolographicDisplays)​
» Placeholders (Supported PlaceholderAPI)​
» Offline cache reward system​
» Permission system​
» AntiAFK system & Captcha​
» Ability to add cooldowns​
» Full language support​
» Easy to use and configurate​
» No dependency​
» Zero lag plugin​
» MySQL and SqLite support​
» Development API​
» AutoSave for no data loss​
» Everything reloadable with in-game command​
» HEX and Gradient text supported​


Install.png

» Download this plugin to your server folder​
» Reload/Restart server​
» Edit config for correct block locations​
» For holograms you can use CMI or HolographicDisplays​
» Reload/Restart server​
» And enjoy!​

Commands.png

» /mysteryblocks help - Print help menu​
* bmysteryblocks.help

» /mb list - Prints all blocks and their info​
* bmysteryblocks.list

» /mb reload - Reloads plugin​
* bmysteryblocks.reload

» /mb teleport <block> - Teleports you to mystery block​
* bmysteryblocks.teleport

» /mb create <block> - Creates a new mysteryblock​
* bmysteryblocks.create

» /mb delete <block> - Deletes existing mysteryblock​
* bmysteryblocks.delete

» /mb set <block> - Reposition existing mysteryblock​
* bmysteryblocks.set

» /mb reset <block> - Reset existing mysteryblock progress​
* bmysteryblocks.reset

» /mb resetall - Reset all mysteryblocks progress​
* bmysteryblocks.resetall


Placeholders.png

» %bMysteryBlocks_REQUIRED_<BLOCK>% - Shows required mine count to destroy block​
» %bMysteryBlocks_TOTAL_<BLOCK>_<ASC/DESC>% - Shows current mine count of block​
» ASC - In ascending order​
» DESC - In descending order​

» %bMysteryBlocks_DESTROYS_<BLOCK>% - Shows total destroys of block​
» %bMysteryBlocks_COOLDOWN_<BLOCK>_ACTIVE% - Return true or false if cooldown is pending​
» %bMysteryBlocks_COOLDOWN_<BLOCK>CURRENT<FORMATTED/SHORT/PLAIN>% - Return cooldown time​
» FORMATTED - 02:16:05​
» SHORT - 2h 16m 5s​
» PLAIN - 8156​


Showcase.png



DefaultFiles.png

Code:
[/INDENT][/INDENT]
[INDENT][INDENT]# Ways to use Gradient or HEX colors. For more info visit https://www.spigotmc.org/resources/iridiumcolorapi.87351/[/INDENT][/INDENT]
[INDENT][INDENT]#  - <GRADIENT:FirstHexColor>This is gradient text</GRADIENT:SecondHexColor> | <GRADIENT:FFFFFF>[/INDENT][/INDENT]
[INDENT][INDENT]#  - <SOLID:HexColor>This is solid HEX color string | <SOLID:FFFFFF>[/INDENT][/INDENT]
[INDENT][INDENT]#  - <RAINBOW>This is rainbow text</RAINBOW>[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]Settings:[/INDENT][/INDENT]
[INDENT][INDENT]  # Used to see debug values. If you dont know why plugin is not working and[/INDENT][/INDENT]
[INDENT][INDENT]  # you know at least something about java and bukkit-api. Feel free to find that problem.[/INDENT][/INDENT]
[INDENT][INDENT]  Debug: false[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]  Database:[/INDENT][/INDENT]
[INDENT][INDENT]    # Types: SQLITE | MYSQL[/INDENT][/INDENT]
[INDENT][INDENT]    # If using SQLITE ignore login values bellow.[/INDENT][/INDENT]
[INDENT][INDENT]    Type: SQLITE[/INDENT][/INDENT]
[INDENT][INDENT]    Login:[/INDENT][/INDENT]
[INDENT][INDENT]      Host: localhost[/INDENT][/INDENT]
[INDENT][INDENT]      User: root[/INDENT][/INDENT]
[INDENT][INDENT]      Pass: password[/INDENT][/INDENT]
[INDENT][INDENT]      Port: 3306[/INDENT][/INDENT]
[INDENT][INDENT]      DB: database[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]  Holograms:[/INDENT][/INDENT]
[INDENT][INDENT]    # If enabled, plugin will try to hook into other plugin hologram system.[/INDENT][/INDENT]
[INDENT][INDENT]    Enabled: true[/INDENT][/INDENT]
[INDENT][INDENT]    # Providers: CMI, HolographicDisplays[/INDENT][/INDENT]
[INDENT][INDENT]    # If you know any other ones. Feel free to contact me about hooking them.[/INDENT][/INDENT]
[INDENT][INDENT]    Provider: NONE[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]  # Placeholders:[/INDENT][/INDENT]
[INDENT][INDENT]  #   %bMysteryBlocks_REQUIRED_<BLOCK>% - 100 .. 200[/INDENT][/INDENT]
[INDENT][INDENT]  #   %bMysteryBlocks_TOTAL_<BLOCK>_<ASC/DESC>%[/INDENT][/INDENT]
[INDENT][INDENT]  #     - ASC: 10 .. 15 .. 150[/INDENT][/INDENT]
[INDENT][INDENT]  #     - DESC: 150 .. 15 .. 10[/INDENT][/INDENT]
[INDENT][INDENT]  #   %bMysteryBlocks_DESTROYS_<BLOCK>% - 1 .. 5 .. 15[/INDENT][/INDENT]
[INDENT][INDENT]  #   %bMysteryBlocks_COOLDOWN_<BLOCK>_ACTIVE% - true / false[/INDENT][/INDENT]
[INDENT][INDENT]  #   %bMysteryBlocks_COOLDOWN_<BLOCK>_CURRENT_<FORMATTED/SHORT/PLAIN>%[/INDENT][/INDENT]
[INDENT][INDENT]  #     - FORMATTED: 02:16:05[/INDENT][/INDENT]
[INDENT][INDENT]  #     - SHORT: 2h 16m 5s[/INDENT][/INDENT]
[INDENT][INDENT]  #     - PLAIN: 8156 | Set in seconds[/INDENT][/INDENT]
[INDENT][INDENT]  Placeholders:[/INDENT][/INDENT]
[INDENT][INDENT]    Enabled: true
Code:
[/INDENT][/INDENT]
[INDENT][INDENT]Block:[/INDENT][/INDENT]
[INDENT][INDENT]  Material: STONE[/INDENT][/INDENT]
[INDENT][INDENT]  Location: world/0/100/0[/INDENT][/INDENT]
[INDENT][INDENT]  # Count of block mines required to destroy block and get rewards.[/INDENT][/INDENT]
[INDENT][INDENT]  Limit: 10[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]Permissions:[/INDENT][/INDENT]
[INDENT][INDENT]  # If enabled, player will need specific permission to be able to[/INDENT][/INDENT]
[INDENT][INDENT]  # mine this block. Permission can be changed bellow.[/INDENT][/INDENT]
[INDENT][INDENT]  Enabled: false[/INDENT][/INDENT]
[INDENT][INDENT]  Permission: "bmysteryblocks.mine.first"[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]AntiAFK:[/INDENT][/INDENT]
[INDENT][INDENT]  # If enabled, players that mines will be randomly thrown away[/INDENT][/INDENT]
[INDENT][INDENT]  # to stop them from afk mining.[/INDENT][/INDENT]
[INDENT][INDENT]  Enabled: false[/INDENT][/INDENT]
[INDENT][INDENT]  # How much you want to throw player away..[/INDENT][/INDENT]
[INDENT][INDENT]  Power: 1[/INDENT][/INDENT]
[INDENT][INDENT]  # Chance from 1 to 100[/INDENT][/INDENT]
[INDENT][INDENT]  Chance: 10[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]Hologram:[/INDENT][/INDENT]
[INDENT][INDENT]  # If enabled, holograms will be placed above this block[/INDENT][/INDENT]
[INDENT][INDENT]  # Its required to have holograms enabled in settings and right provider selected![/INDENT][/INDENT]
[INDENT][INDENT]  Enabled: true[/INDENT][/INDENT]
[INDENT][INDENT]  # Active is set when there is no cooldown on block[/INDENT][/INDENT]
[INDENT][INDENT]  # Inactive is set when cooldown is active[/INDENT][/INDENT]
[INDENT][INDENT]  #[/INDENT][/INDENT]
[INDENT][INDENT]  # Placeholders:[/INDENT][/INDENT]
[INDENT][INDENT]  #   {0} - Block name[/INDENT][/INDENT]
[INDENT][INDENT]  #   {1} - Current mine count ASC[/INDENT][/INDENT]
[INDENT][INDENT]  #   {2} - Current mine count DESC[/INDENT][/INDENT]
[INDENT][INDENT]  #   {3} - Required mines[/INDENT][/INDENT]
[INDENT][INDENT]  #   {4}, {5}, {6} - Cooldown time .. FORMATTED, SHORT, PLAIN[/INDENT][/INDENT]
[INDENT][INDENT]  Lines:[/INDENT][/INDENT]
[INDENT][INDENT]    Inactive:[/INDENT][/INDENT]
[INDENT][INDENT]      - "&6&lThis is {0} block"[/INDENT][/INDENT]
[INDENT][INDENT]      - ""[/INDENT][/INDENT]
[INDENT][INDENT]      - "Current mines: &e{1}/{3}"[/INDENT][/INDENT]
[INDENT][INDENT]      - ""[/INDENT][/INDENT]
[INDENT][INDENT]      - "&7*Block will regenerate after.. &a{5}&7*"[/INDENT][/INDENT]
[INDENT][INDENT]    Active:[/INDENT][/INDENT]
[INDENT][INDENT]      - "&6&lThis is {0} block"[/INDENT][/INDENT]
[INDENT][INDENT]      - ""[/INDENT][/INDENT]
[INDENT][INDENT]      - "Current mines: &e{1}/{3}"[/INDENT][/INDENT]
[INDENT][INDENT]      - ""[/INDENT][/INDENT]
[INDENT][INDENT]      - "&7* Break this block to get rewards *"[/INDENT][/INDENT]
[INDENT][INDENT]  Y-Offset: 0.5[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]Cooldown:[/INDENT][/INDENT]
[INDENT][INDENT]  # If enabled, block will be unmineable for specific time.[/INDENT][/INDENT]
[INDENT][INDENT]  # After that time, block will be working again.[/INDENT][/INDENT]
[INDENT][INDENT]  # After is mined, block will to turn to material specific bellow.[/INDENT][/INDENT]
[INDENT][INDENT]  Enabled: true[/INDENT][/INDENT]
[INDENT][INDENT]  # Time is set in milliseconds[/INDENT][/INDENT]
[INDENT][INDENT]  Time: 300000[/INDENT][/INDENT]
[INDENT][INDENT]  # Material that will block be set when is inactive[/INDENT][/INDENT]
[INDENT][INDENT]  Material: BEDROCK[/INDENT][/INDENT]
[INDENT][INDENT][/INDENT][/INDENT]
[INDENT][INDENT]Action:[/INDENT][/INDENT]
[INDENT][INDENT]  # Action types:[/INDENT][/INDENT]
[INDENT][INDENT]  #   [COMMAND] - Execute command as player[/INDENT][/INDENT]
[INDENT][INDENT]  #   [OP-COMMAND] - Execute command as oped player[/INDENT][/INDENT]
[INDENT][INDENT]  #   [CONSOLE-COMMAND] - Execute command from console[/INDENT][/INDENT]
[INDENT][INDENT]  #   [MESSAGE] - Sends player message[/INDENT][/INDENT]
[INDENT][INDENT]  #   [BROADCAST] - Sends everyone message[/INDENT][/INDENT]
[INDENT][INDENT]  #   [SOUND] - Play a sound to player.. Format: SOUND-VOLUME-PITCH[/INDENT][/INDENT]
[INDENT][INDENT]  #   [ACTIONBAR] - Show player action bar message[/INDENT][/INDENT]
[INDENT][INDENT]  # Cache (Offline rewards system):[/INDENT][/INDENT]
[INDENT][INDENT]  #   If command starts with $ and player is offline, that command[/INDENT][/INDENT]
[INDENT][INDENT]  #   will be saved and then executed after player is back online.[/INDENT][/INDENT]
[INDENT][INDENT]  #   When player is online, command will work like normal.[/INDENT][/INDENT]
[INDENT][INDENT]  #    - !! Works only in OnDestroy - PerPlace !![/INDENT][/INDENT]
[INDENT][INDENT]  #   Example: $give {0} diamond 5[/INDENT][/INDENT]
[INDENT][INDENT]  # Placeholders:[/INDENT][/INDENT]
[INDENT][INDENT]  #  - {0} - Block name[/INDENT][/INDENT]
[INDENT][INDENT]  #  - {1} - Block material[/INDENT][/INDENT]
[INDENT][INDENT]  #  - {2} - Player name[/INDENT][/INDENT]
[INDENT][INDENT]  #  - {3} - Current mines ASC[/INDENT][/INDENT]
[INDENT][INDENT]  #  - {4} - Current mines DESC[/INDENT][/INDENT]
[INDENT][INDENT]  #  - {5} - Required mines[/INDENT][/INDENT]
[INDENT][INDENT]  #  - {6} - Player mines actual[/INDENT][/INDENT]
[INDENT][INDENT]  #  - {pos-1-name} and {pos-1-value} - First position name and mine count. | Works only in OnDestroy-Global[/INDENT][/INDENT]
[INDENT][INDENT]  OnReset:[/INDENT][/INDENT]
[INDENT][INDENT]    - "[SOUND] UI_TOAST_CHALLENGE_COMPLETE-1-1"[/INDENT][/INDENT]
[INDENT][INDENT]    - "[BROADCAST] &6&lMysteryBlocks &8&l» &7Block &e{0} &7is now back regenerated!"[/INDENT][/INDENT]
[INDENT][INDENT]  OnMine:[/INDENT][/INDENT]
[INDENT][INDENT]    - "[SOUND] BLOCK_ANVIL_LAND-1-1"[/INDENT][/INDENT]
[INDENT][INDENT]    - "[MESSAGE] &6&lMysteryBlocks &8&l» &7You mined &e{0} &7block. (&6{6}x&7)."[/INDENT][/INDENT]
[INDENT][INDENT]  OnDestroy:[/INDENT][/INDENT]
[INDENT][INDENT]    Global:[/INDENT][/INDENT]
[INDENT][INDENT]      - "[BROADCAST] &6&lMysteryBlocks &8&l» &7Block &b{0} &7was mined! Miners:\[/INDENT][/INDENT]
[INDENT][INDENT]      \ \n&6&lMysteryBlocks &8&l» &r &f1. &e{pos-1-name} &7mined &6{pos-1-value}&7x\[/INDENT][/INDENT]
[INDENT][INDENT]      \ \n&6&lMysteryBlocks &8&l» &r &f2. &e{pos-2-name} &7mined &6{pos-2-value}&7x\[/INDENT][/INDENT]
[INDENT][INDENT]      \ \n&6&lMysteryBlocks &8&l» &r &f3. &e{pos-3-name} &7mined &6{pos-3-value}&7x\[/INDENT][/INDENT]
[INDENT][INDENT]      \ \n&6&lMysteryBlocks &8&l» &r &f4. &e{pos-4-name} &7mined &6{pos-4-value}&7x\[/INDENT][/INDENT]
[INDENT][INDENT]      \ \n&6&lMysteryBlocks &8&l» &r &f5. &e{pos-5-name} &7mined &6{pos-5-value}&7x"[/INDENT][/INDENT]
[INDENT][INDENT]    PerPlace:[/INDENT][/INDENT]
[INDENT][INDENT]      1:[/INDENT][/INDENT]
[INDENT][INDENT]        - "[CONSOLE-COMMAND] say {2} mined most of the stone. Total: {6}x"[/INDENT][/INDENT]
[INDENT][INDENT]      2~3:[/INDENT][/INDENT]
[INDENT][INDENT]        - "[CONSOLE-COMMAND] say {2} was on second or third place"[/INDENT][/INDENT]
[INDENT][INDENT]

cooltext398959689919555.png

Code:
[/INDENT][/INDENT]
[INDENT][INDENT]  MysteryBlocks.getAPI(); - To get api access[/INDENT][/INDENT]
[INDENT][INDENT]

Proof.png

ProofCode.png

Terms.png

» By purchasing plugin you automatically agree to these terms.​
» You are not permitted to decompile or change my plugin.​
» No refunds or chargebacks are allowed.​
» You are not allowed to distribute this plugin in any way.​
» Do not ask for support or report bugs in reviews.​
» Plugin is for use only on your network/server.​
» I am allowed to update these terms how ever I like without notifying anyone about the update.​

If you really like my work. Feel free to donate me some coffee.
Donate link: https://paypal.me/firestone82
Crediting original
Thanks to pvpcraft.cz (bublif) for this plugin idea.

Latest updates

  1. Update - v2.0.2

    » Debug showing
  2. 2.0.1

    » Event error, runned asynchronously
  3. Update - v2.0

    » Development API » Custom BukkitAPI Events » OnDestroy block section for all players that mined...

Latest reviews

Very good plugin for RPG,SURIVAL,FACTIONS servers, and easy setup in config
Very cool plugin, developer is great and offers fast support! :)
Firestone82
Firestone82
Thanks for review! Feel free to make feature requests.

Author

Author
Firestone82
Downloads
13
Type
Digital product
License duration
Unlimited
Price
6.00 EUR
Views
872
First release
Last update
Rating
5.00 star(s) 2 ratings
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.