Econoblocks icon

Econoblocks -----

Give players rewards for mining blocks | 1.8 - 1.21 | Dupe Protection | ItemsAdder Support




- Added Nexo support
----------, Jan 10, 2025

  • Fixed a potential startup error that involves dependency injection.
  • Fixed the action bar coloring not working as intended.
Confirming that this version works on the latest version of Minecraft (1.21.3)
----------, Nov 21, 2024

Added Official support for 1.21
Added the ability to allow item rewards to drop naturally.

To use this feature, add this to your config.yml.
Code (YAML):
# Let the given rewards drop on the ground? Only works for item rewards.
drop-on-ground
: true
Fixed formatting for custom items placeholder.
Added custom block hooks now generate all the blocks in their hook files (if plugin allows it).
----------, Jul 10, 2024

  • Allowed Economy rewards to include decimals.
  • Fixed an issue conflicting with /help commands from other plugins.
  • Added {amount_rounded} placeholder.
----------, May 12, 2024

Econoblocks Update 2.0.0 is a massive update to how the plugin functions and MANY configurations from 1.0.0 will not work. Back up and update your files accordingly. You may find information and tutorials on the wiki. https://wiki.flrp.dev/free/econoblocks

Implemented Loot Tables and a New Loot System. This loot system expands on the usual economy drops. The plugin now supports commands, items, custom items, and even potion effects. Loot is now able to have minimum and maximum ranges for drops.

The loot system supports default loot tables for all blocks, including an exclusion feature to rid a block of giving any reward.

Conditionals are also implemented to make loot tables only available in certain conditions.

Added More Hook Support. A lot of hooks have been added and expanded. Plugins that are now supported are Oraxen, MMOItems, DecentHolograms, and more to come.

Built-in holograms and animations have been removed due to the reported issues. To use holograms, you will need a hologram plugin Economobs can hook into.

Changed some commands and added /econoblocks profile <user>. The check command is used to check loot profiles, while profile is used to check a players' multiplier profile.

Permissions have been made less vague and each command has its own permission.

Reworked Messages. The language file now uses proper placeholders, and has a ton of more options to support the new updates. Messages are now more graceful with decimals. PlaceholderAPI support is included and now any player replaced PAPI placeholder may be parsed in the reward message. Econoblocks also now has PAPI placeholders.

Titles are now a message type.

Thank you for waiting for this update. If you encounter any issues, please join the discord.
----------, May 6, 2024

Added the ability to use different types of economies.
The supported list is as follows:
Vault, PlayerPoints, TokenManager (3.2.8+)


Please add this to your config.yml
Code (YAML):
# What currency should the plugin use?
# Current list: VAULT (Default), PLAYER_POINTS, TOKEN_MANAGER
economy
: VAULT
----------, Aug 9, 2023

Fixed an issue with a newly generated ItemsAdder.yml file.
It should always generate correctly now.

Last update (1.4.1) added ItemsAdder support. It is fully functional in that version. The mistake is that multipliers were generated wrong. Please fix the current issue in ItemsAdder.yml:

Broken:
Code (YAML):
multipliers:
  example
:
    blocks
:
      carved_wood_block
: '1.2' #broken
    tools
:
      emerald_pickaxe
: '1.2'

Fixed:
Code (YAML):
multipliers:
  example
:
    blocks
:
   - carved_wood_block 1.2 # fixed
    tools
:
   - emerald_pickaxe 1.2
For the plugin to be able to read the multipliers there should be no colons ( : ) or apostrophe ( ' )
Doing this in the previous version will also make the plugin functional. It is optional to upgrade the version.

Adjusted the update checker to stand out more and to not print anything in console if there is no update for less console spam.
Adjusted how the ItemsAdder hook adds to MultiplierGroups.

Thanks for waiting for the update. If you come across any issues let me know immediately.
----------, Jul 25, 2023

Added an update checker to remind users there's updates!
Please add this to your config.yml
Code (YAML):
check-for-updates : true

Added support for ItemsAdder.
Please add this to your config.yml
Code (YAML):
# Hook management.
hooks
:
  # Enable ItemsAdder support? This adds the ability to earn money from custom blocks.
  ItemsAdder
: true
If the plugin detects ItemsAdder, it will generate the file hooks/ItemsAdder.yml - within this file you can add new custom blocks the plugin will listen to, and a new set of multipliers you can add to groups.

Code (YAML):
multipliers:
  example
:
    blocks
:
     - carved_wood_log 1.2
    tools
:
     - emerald_pickaxe 1.2
blocks
:
  carved_wood_block
:
 - '10'
 
It follows the same format as default files so it shouldnt be confusing. If you need any assistance join our discord.

Adjusted some commands that allows to give custom block/item multipliers to users, and shows custom multipliers.
/econoblocks multiplier add <user> <block/tool/world/ custom_block/ custom_tool> <context> <multiplier>
/econoblocks multiplier remove <user> <block/tool/world/ custom_block/ custom_tool> <context>
/econoblocks check <player> - shows custom block/tool multipliers set to the user​

This update contains significant changes to the default system too. If you encounter any bugs please report to me immediately.
----------, Jul 18, 2023

This update is very important, please read it fully! If you are confused, contact me or look at the wiki.
We are also looking for beta testers! Join the discord if you are interested.


Added support for multiple rewards for a block type.
NOTE: This has changed the formatting of blocks.yml - The plugin should automatically convert this file, so please have a backup just in case.

Previous Formatting:

Code (YAML):
blocks:
  COAL_ORE
: '10'

New Formatting:
Code (YAML):
blocks:
  COAL_ORE
:
  - '10'


Added a configuration version to keep track of.
Code (YAML):
# Configuration of Econoblocks. For help, visit https://docs.axelli.net/
config-version
: 5
Added more placeholders in language.yml.
Code (YAML):
# {0} prints out the money made.
# {1} prints out the base before multipliers are added.
# {2} prints the multiplier.
economy-given
: "&7You've earned &f${0} &7by mining this block. &7&o({1} x {2})"
----------, Feb 23, 2023

This update contains changes to config.yml, please read carefully.

Added weight to multiplier groups. Add weight: <number> in your multiplier groups in config.yml so they can work properly. If no weight is assigned it will default to the lowest priority.
Code (YAML):
multipliers :
  # econoblocks.group.example
  example
:
    # Higher the number, heavier the group, higher priority.
    weight
: 1
    # Specific block multipliers.
    blocks
:
     - COAL_ORE 1.5
      - IRON_ORE 1.5
    # Specific tool multipliers.
    tools
:
     - IRON_PICKAXE 1.05
      - GOLDEN_PICKAXE 1.1
      - DIAMOND_PICKAXE 1.2
    # The world the block was mined in.
    worlds
:
     - real_world 1.1
Thanks for waiting for this update. Please contact me immediately if you find any issues.
----------, Sep 16, 2022

This update contains huge changes. Please read the entirety of these notes and check the wiki and/or contact me for assistance.

Reworked multipliers. Multipliers can now be grouped. Set up new groups in config.yml. Group multipliers are done by permission with econoblocks.group.<group> - Specific multipliers are done with command. Specific multipliers overrule group multipliers.

New format in config.yml
Code (YAML):
multipliers:
  GROUP_NAME
:
    blocks
:
     - MATERIAL MULTIPLIER # Decimals are supported.
    tools
:
     - MATERIAL MULTIPLIER
    worlds
:
     - WORLD_NAME MULTIPLIER
Reworked logging and added colors. Paper should stop the nag warning.
Reworked hooks for future updates.
Added new commands:
/econoblocks check <user> - displays a users multipliers.
/econoblocks multiplier add <user> <entity/tool/world> <context> <multiplier> - adds a specific multiplier to a user.
/econoblocks multiplier remove <user> <entity/tool/world> <context> - removes a specific multiplier from a user.​
Added an alias to the base command, which is /eb
Added an option to exempt players that are in creative to get rewards.
Code (YAML):
# Gamemode settings.[/INDENT]
gamemode
:
  # Should people in creative mode get rewards?
  creative-rewards
: false
[INDENT ]
Changed how placed blocks are saved. This change has added values to the database. Please let me know if there are any performance issues or any errors.

Thanks for waiting for this update.
----------, Apr 7, 2022

Added a safety measure for Vault bank accounts. The plugin now creates bank accounts, if none exist, to ensure money is always added.
Added bStats, so I can monitor if the plugin use is declining or rising. You can always opt out of bStats use if you wish to do so.
Removed the language section economy-failed, as it's no longer needed.

This update adjusts the methods to deposit money a slight bit. Please contact me if you run into any issues.
----------, Jul 17, 2021

Added a simple check to ensure invalid locations aren't added to cache. Mainly for servers with resource worlds.
----------, Jul 14, 2021

Added New startup checks. This should allow the plugin to load on 1.17 without any issues if your config or something in your config is invalid.
Added Some minor code fixes.

1.17 was already supported, though some users have reported some issues on startup. This update should fix them. Please contact me if you experience any issues.
----------, Jul 5, 2021

NOTE: THIS UPDATE ADDS OPTIONS TO CONFIG.YML
Please contact me if you experience any issues or require any help.

Added
SQLite support to save block locations to avoid players duplicating rewards. You can disable this option and blocks will still be tracked, just not saved.
Removed The ability to block silk touch as its no longer needed.

Please replace the checks section with the text below
Code (YAML):
# The checks system provides methods to help make sure players can't duplicate rewards.
checks
:
  # This option uses SQLite. SQL support will come later.
  storage
:
    # Should blocks be stored in a database? This will keep all block data across restarts. Setting this option to false will still keep track of blocks,
    # but they will NOT be saved across restarts.
    enabled
: true
    # How long will blocks be stored for until they expire? This will help clear up space in the database.
    # To disable this, just set it to 0. This is in days.
    expiry
: 3
Please do not reload the server with /reload, or new blocks will not be saved. You shouldn't ever run /reload anyway.
----------, Jun 1, 2021

NOTE: THIS UPDATE ADDS MULTIPLE OPTIONS TO CONFIG AND LANGUAGE.YML
UPDATE THESE OR SOME FEATURES WILL NOT WORK.

Please contact me if you experience any issues or require any help.

Added the ability to enable and disable income messages in config.yml
Added the toggle command to allow players to toggle income messages (will reset on server restart)
These will NOT disable messages notifying you when money cannot be added.

Added more message types:
  • Chat (default)
  • Action bar (Only works with 1.12+)
  • Holograms (Only works with 1.12+)
Added hologram animations
Fixed an issue where money can be given even when a block can't be broken due to WorldGuard, etc.

Please add this to your config.yml
Code (YAML):
# Message handling.
message
:
  # Should the plugin send messages about money gained?
  enabled
: true

  # How should the plugin display messages when a player is given money?
  # NOTE: Some options will only work with select versions. You can see which below.
  # OPTIONS: CHAT, ACTION_BAR (1.12+), HOLOGRAM (1.12+)
  message-type
: CHAT

  # HOLOGRAMS
  # This will only work if you have holograms set as your type.
  holograms
:
    # OPTIONS: STAY, FLOAT, BOUNCE
    animation
: STAY
    # This option will effect animations.
    # How long should the hologram stay? This is in seconds.
    duration
: 1
Add this to language.yml
Code (YAML):
economy-toggle : "&7Toggled income messages."
For users under 1.12, I'm working on some methods to condense chat to help with block spam.
----------, Apr 27, 2021

NOTE: This update adds something to your config.yml

The start of the checks system!
This update adds the ability to toggle whether or not you want users to get money from tools with Silk Touch on it.

Please add:
Code (YAML):
checks :
  # Should money be given if the tool has silk touch on it?
  allow-silk-touch
: false
----------, Apr 13, 2021

- Plugin should now load on 1.13-1.15
- Fixed default configuration. If you're updating please change any ":" in your mob values to a space in blocks.yml.
Example: "50:30" to "50 30"
----------, Apr 11, 2021

Resource Information
Author:
----------
Total Downloads: 3,320
First Release: Apr 10, 2021
Last Update: Jan 10, 2025
Category: ---------------
All-Time Rating:
7 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings