Fixed farm's items not being counted when breaking blocks in a farm mine.
Fix when creating new schematic mines.
Fix error when deleting mine that didn't have a mine timer set.
Fixed block and farm mine's creation exception.
Fixed crop age not being properly converted and updated into the new scheme. Version bump to 1.8.1
WARNING:
As this update contains quite a lot of changes, it is extremely recommended to MAKE A BACKUP of your current RealMines folder. Everything should convert smoothly but, if something goes wrong, please make sure to get support from the Discord server.
As of version 1.8, there's a n
ew config structure for RealMines. Inside the plugin folder there's now individual configuration files for each mine, with some changed config structure.
This was done to make support for the new feature:
block-sets!
You can configure various block-sets for each mine. A block-set is a set of blocks pre-defined by an admin.
For example, say you define two block-sets: BS1 (Stone 50% and Dirt 50%) and BS2 (Glass 35% and Sand 65%)
When the mine resets, you can configure it to go to the next block-set available or pick one at random.
This update also includes:
- Added list of break actions at bottom of mine's items.
+ Fixed schematics not being placed.
+ Fixed error when getting custom skull textures.
Fixes previous update loading error
+ Fixed reading chat inputs. Now via packets instead of bukkit events
+ Fixed secondsleft papi placeholder.
FAWE Mine Reset Bugfix and Fix PAPI parsing for mines without reset countdown.
- Added mine conversion for JetsPrisonMines! Use /rm convert JetsPrisonMines to start the import process.
- GUI for Picking Percentages for blocks is now the default.
- Added seconds to the secondsleft PAPI placeholder.
- Fixed bug with break action given and dropped items.
- Other small bugfixes.
+ Added a Block Breakable flag that can be switched with Shift Right Click on the mine's block list (blocks and schematic mines only) (Vericidious suggestion, thanks!)
+ Added CataMines mine conversion.
+ Added FAWE/WorldEdit block placement to RealMines, in order to improve block placement speed and server resources.
+ Fixed Schematic Mines region calculation.
+ Fixed setMaxCollectionAliases in mines.yml to fix mine parsing problems.
+ Fix java.lang.NoClassDefFoundError: org/apache/commons/lang3/text/WordUtils
+ Added %realmines_percentage_bar_<mine>% that outputs the bar placeholder + the percentage of remaining blocks.
+ new OnMineResetEvent.java in the RealMinesAPI.
+ Added Reset Commands configurable by config that execute when a mine resets. (Suggestion by MelonOof)
+ Added mine sort in the mine GUI, default or by size.
+ Fixed block break actions being activated when a block was placed.
+ Fixed invalid count of negative numbers.
+ Added %blockloc% to command break actions, so it can accept, for example: /tp %player% %blockloc%
+ New GUI for selection block percentages. Can be enabled in the config
Changed Startup Text. This update is optional.
+ RealMines now has an API that developers can access! Learn more about it on the plugin's GitHub page!
+ Mines will now sync by default with RealRegions, creating automatically a region for the mine (can be turned off in RealRegions config)
+ /mine setregion is now /mine setbounds
+ Fixed teleport issue when a mine is resetting (Thanks Vericidious for reporting!)
+ Fixed farm items not being able to be removed from the mine.
+ Fixed setting a new region for a mine not being properly saved.
+ Fixed typo in "Nothing found for your search criteria."
NOTE: Before updating the plugin, make sure to make a backup of mines.yml, as the format in which the mine's blocks are stored has changed. Please keep a backup of this file in case that the conversion goes wrong. As always, please join the discord server for correction of current and future bugs.
+ Flag to disable item drop, give and other block break action messages in the mine's blocks gui (suggestion by BLokking02, thanks!)
+ Fixed schematic mines incorrect loading in the 1.6 update (Thanks Abood_8001 for reporting the situation!)
+ Added GUI Item to Toggle The Mine's Break Permission: realmines.<mine_name>.break
+ Add block support for schematic mines in order to be possible to add break actions to the schematic's blocks.
+ Added Mine Faces to Schematic and Farm Mines.
+ Added /mine rename mine new_name for renaming mines, and a corresponding option in the mine's menu.
+ Changed /rm panel to /rm mines (there is still an alias for /rm panel)
+ Added a GUI for /rm that enables users to access the mines and settings GUIs.
+ Added a Settings GUI that can edit the config.
+ Plugin optimisations and quality of life improvements.
NOTE: Before updating your server, make sure to make a backup of mines.yml, as the format in which the mine's blocks are stored has changed. Please keep a backup of this file in case that the conversion goes wrong. As always, please join the discord server for correction of current and future bugs.
Added Mine Break Actions
With Break Actions, you can assign actions to execute when a specific type of block in the mine is broken by a player.
By default, when you add a new block to the mine, the block doesn't have a break action assigned. You can access the break actions menu for the specific block by going into the mine's blocks menu and right-click on that specific block.
Current actions supported are:
1. Give Money when a block is broken
2. Give or Drop an ItemStack when a block is broken
3. Execute a Command in the console when a block is broken (%player% to get the player name)
+ Mine Reset Message via Action Bar, configurable via config file.
+ Fixed bug where Air ItemStacks would be accepted as valid items.
+ Added config option to broadcast reset message only to players that are in the world. (Thanks NotDarko for the suggestion!)
+ Added Option in config to reset mines where there are no online players (Thanks Bauzamir13 for the suggestion!)
+ /mine reset name now has realmines.reset permission (Thanks aleshq for the suggestion!)
+ Added support for Farm Mines across hills and other places that have more than one block of height. (Thanks Majhinell for the suggestion!)
+ Added config option to enable/disable placing the farm block under the crop in the farm mine (Thanks ThePastaManCan for the suggestion!)
+ Added realmines.update.notify and realmines.admin to the new update prompt when any player what is op or has those permissions in order to get notified by the new update. (Thanks Dejwid7123 for the suggestion!)
+ Added Farm Mines! These mines are 1 height mines that only have crops as their blocks. (Thanks bffjaydan for the suggestion!)
+ Added MineResetLite mine conversion! with: /rm import MRL
+ Added /rm blocks <mine> to directly view the mine's blocks
+ Fixed bug regarding mine's mined block count not updating.
+ Fixed bug where the mine list panel would crash if no mines were created.
+ Changed /rm panel <mine> to /rm mine <mine>
+ Added teleportPlayers option in config to set if players inside a mine will be teleported outside the mine. (Thanks !Cuervii and utopik for the suggestion!)
+ Fixed bug in RMine.setResetValue that didn't properly accept the required reset percentage values.
+ Added teleportPlayers option in config to set if players inside a mine will be teleported outside the mine. (Thanks !Cuervii and utopik for the suggestion!)
+ Added command to freeze a mine and, when freezed, it cant be destroyed (Thanks Lipton for the suggestion!)
+ Code cleanup and optimization.
+ Fixed huge Parse Delay when using PlaceholderAPI placeholders. The mine is no longer iterating over all blocks and calculating the necessary numbers for the placeholders. (Thanks SrMast3r for the report!)
+ Added check for creeper explosions in mines.
+ Fixed a bug regarding mine sign creation.
+ Fixed update warning message for when an OP player joins the server.
+ Fixed translations strings in the mine reset timer menu.
+ Translatable messages on Mine Signs (update language.yml)
+ Fixed and removed some static accesses.
+ General bug-fixing.
Thanks
neziw for the help with this update!
+ Added /mine silentall <true/false> (Bealang suggestion!)
+ Fixed bug where the faces option would appear in the schematic mines panel.
+ Fixed bug that didn't let percentages be set to 100.
New placeholder: Mine Bar: %realmines_bar_<name>%
New command: /mine silent <name>. This command will toggle the mine reset messages.
Added more translation strings.
YAML engine migrated to BoostedYAML.
This update was done with the large contribution from neziw, thanks!
+ Fixed 100% not being accepted in input selecion of the mines.
+ Added permission for teleporting to a specific mine.
/mine tp <name>
Permission to use the command: realmines.tp
Permission to a specific mine: realmines.tp.<name>
+ Mines dont reset when there are no players online, to save on system resources.
+ Added option in config to enable or disable mine teleport message.
+ RealMines now calculates correctly percentages, comparing to the previous system.
+ Quality of life fixes and improvements.
+ Now you can set the blocks percentage to values bigger than 0 (0.1% or 0.5% for example).
+ New PlaceholderAPI placeholder: %realmines_secondsleft_MINE% (thanks Bodha#8672 for the suggestions!)
+ General bug-fixing and quality of life improvements.
+ Added Schematic mines support!
When doing /mine create <name>, now there is a GUI where you can select the mine type you want to create.
+ Both WorldEdit and FAWE support.
All of these changes can be seen on Github.
+ Added new PlaceholderAPI support with new placeholders
(realmines_totalblocks_MINE, realmines_minedblocks_MINE, realmines_remainingblocks_MINE, realmines_perremainingblocks_MINE, realmines_perminedblocks_MINE)
You have to change MINE to the mine name that you want to retrieve information from.
PLEASE NOTE: I STRONGLY ADVICE YOU TO UPDATE LANGUAGE.YML IN ORDER TO ADD NEW TRANSLATABLE STRINGS. BACKUP YOUR CURRENT LANGUAGE.YML FILE BEFORE UPGRADING TO THIS VERSION.
Changelog:
+ Added Configurable Faces option where the face of the mine is covered with a certain chosen block. Access the brand new Faces menu via the Mine Panel. (Thanks Darkmany_Bree for the suggestion!)
+ [/realminesresettask] Added /rmrt command to create reset tasks and link them to mines to make mines reset at the same time. (Thanks Darkmany_Bree for the suggestion!)
+ Now Blocks in the Player Inventory can be clicked in the Mine Blocks GUI to add them. (Thanks Darkmany_Bree for the suggestion!)
+ /mine reset <name> can now be run from the console (Thanks Darkmany_Bree for the suggestion!)
+ Added more Translatable Strings [IT IS NEEDED TO ADD THEM OR RESET language.yml]
+ Added Mine.saveAll method
+ MaterialPicker.java can now have extra information embedded onto the class.
+ Re-Organized some enums and classs in other classes.
+ Refactored and removed some static abuse.
Added Strings:
GUI:
Faces-Name: "&rFaces"
Items:
Faces:
Name: "&a&lFaces"
Description:
- "&fClick here to configure the mine faces."
Add:
Description:
- "&fYou can also &bclick &fon a block in your inventory to add it!"
System:
Invalid-Arguments: "&cInvalid arguments."
Cant-Add-Item: "&fThat item &ccant &fbe added to the mine."
Mine-Created: "&fMine &b%mine% &acreated."
Mine-Task-Created: "&fMine task &b%task% &fwith delay &e%delay% &fcreated."
Mine-Task-Exists: "&cThere is already a mine task with that name."
Mine-Linked: "&fMine &alinked!"
Mine-Unlinked: "&fMine &aunlinked!"
Mine-Task-Doesnt-Exist: "&cNo mine task exists with that name."
+ Added UpdateChecker.java
+ Removed debug messages.
+ Minor bugfixes.
+ When you create a new mine, it will ask you if you want to add the existing detected blocks.
+ New Mine Colors that can be selected via the Mine GUI.
+ The mine highlight is the color that is selected in the mine gui.
+ Added language.yml to translate the plugin.
+ config.yml now has announce times.
+ RealMines now reloads properly.
+ BlockInteractions.java is now inside BlockEvents.java.
+ /mine list is now /mine panel.
+ /mine delete now has an abreviation (/mine del).
+ Added SkullCreator library for the colored icon heads.
- Removed MinePlayer.java and PlayerEvents.java because they were useless.
+ Code clean-up and minor Bugfixes.
NOTE: Because this was a major update, it is expected that bugs appear. Please be sure to report them. Thanks!
NOTE
It´s highly recommended to re-configure the mines again.
Delete your mines.yml file and re-configure the mines. Thanks to everyone who reported bugs!
+ Commands now have autocomplete.
+ Mines now have a displayname.
+ Code got cleaned up.
+ API Version 1.14
- Removed unnecessary classes & dependencies.
+ added a new Selection and Mine Visualizer.
+ fixed double clicking with the RealMines wand.
+ added /mine delete command to the /mine command help/description.
+ added reset icon to the mine GUI options.
+ added the option to press Q to clear the Selection (holding the Mine Selection Wand).
- removed useless code.
- removed the ProtocolLib dependency (didnt know why i had it)