Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improved French translation (#35) * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize Co-authored-by: organizatsiya <59617430+organizatsiya@users.noreply.github.com> Co-authored-by: AFGAME <50768722+AFGAME@users.noreply.github.com> * Release 2.0.0 (#59) * Add ignoreCancelled to BlockFromToEvent to avoid issues when addon allows to place water where it should not be. * Fix issue when water stop flowing, if cobblestone generation is triggered by water flow (#24) * Add generation sound effect and particles (#23) * Add Spanish translation (#25) * Update config.yml to include info on decimals and total chance values per tier (#22) * Update config.yml to include info on decimals and max chance values Update config.yml to include info on decimals for chances and max chance values for tiers. * Translate es.yml via GitLocalize * Translate es.yml via GitLocalize * Remove unnecessary templates un translation files. Update dependencies in pom. * Remove bug reported by SonarCloud. * Fixes a few code smells. * Added MainGeneratorListener test class. * Adds support for decimal block chances #27 #21 * Don't use physics on new generated blocks. * Fixes code smells and duplications * Fixes gamemode setting bug introduced by refactoring. #29 * Added StoneGeneratorAddon test class * Updated travis.yml * Fixed code smells in tests. * Gitignore * Seeding was preventing randomness within same millisecond #31 * Version up 1.9.0 * Changed build numbers to use 'b' instead of '#' * Update to use BentoBox 1.9.2 API * Fixed indentation and made minor improvements in the main class * Added %MagicCobblestoneGenerator_[gamemode]_island_generator_tier% placeholder Implements #30 * Fixed and improved tests * Improved en-US * Fixed code smell * Added "MAGIC_COBBLESTONE_GENERATOR" flag (SETTING) Implemented #11 * Fixed tests * Translate de.yml via GitLocalize (#32) Co-authored-by: xXjojojXx <36734820+xXjojojXx@users.noreply.github.com> * Czech translation. Credit @Polda18 * make use of physics configurable (#34) * Generator range option (#38) * Added a setting that allows the generator to only work if there is a member of the island in x range. This can be disabled by setting it the range in the config to 0 or any lower value. * Made a couple of improvements based on feedback. * Fixes tests and adds new tests for MainGeneratorListener * Optimized isInRangeToGenerate method * Fix grass block (#40) * Version 1.9.1 * Handles cobble generation via other means #47 * Fixes tests * Fixes #48 * Update to BentoBox 1.14.0-SNAPSHOT * Reformat code with better reading format. * Removed alpha stage text * Improved explanation * Do some more cleanUps. Add better placeholders that follows `[gamemode]_[addon]_[placeholder]` * Create fr.yml (#45) * Update to spigot 1.16.1 * Rework addon in progress. - Split Vanilla and Magic generator listeners in 2 classes. Vanilla generator replaces block in the next tick, while Magic Generator will work with custom implementation. - Add 3 types of generators: cobblestone, stone and basalt in MagicGenerator class. Remove one general method, as it is time to split them appart. - Use vanilla generator listener for now only, as other is not finished. * Change vanilla generator listener priority to monitor, as it does not cancels it, and should always be processed at the end. * MagicCobblestone Generator 2.0.0 (#53) * Create GeneratorTierObject This object will contain all information for each generator tier. * Add Getters and Setters for all variables. * Add Database processing for generator tiers. * Add description to the generator tier object. * Add gameMode nether and end worlds only if island type are enabled. * Implement GeneratorDataObject that stores data per island. Allows to switch active generators. * Add MaxTreasureAmount variable in GeneratorTierObject. * Add ability to define generator tier as default generator. * Split active generator into 3 different objects for cobblestone, stone and basalt. * Replace separate active generators with a single set. * Implement priority setting in generator tier object. * Rework StoneGeneratorManager. Add new data object loading and saving. Create method that returns generator tier for given location and given generator type. Create method that finds default generator tier for given world and given type. Remove all commands, as they need complete rework. * Remove main command and placeholders. Must be reworked. * Add Reload method. * Rework settings file. Remove generators from settings file. Will be implemented in separate file. * Rework MagicGenerator class. Use new methods and abilities. * Create template file for generators. * Move manager to separate package. * Change from required-biome to required-biomes :) * Add small protection against negative values * Add method that can clear all generators for certain gamemode. * Add generator file readed. * Implement activation-cost variable. This allows to define price for activating generator. Rename upgrade-cost to more proper purchase-cost. Add messages about Level addon and Upgrades addon requirements. * Rename method from getManager to getAddonManager. * Add method that allows to find all generators in given world. Fix failing test. * Start to create GeneratorUserPanel * Add general Utils class. * Implement ability to find out purchased generator tiers, purchased count of active generators and store working range in generator data object. * Add generator data object validation, which populates unlocked generators and sets value for active generator count and working range. * Add MAGIC_COBBLESTONE_GENERATOR_PERMISSION flag, that allows island owner change who can activate generators. * Add VaultHook and UpgradesAddon getters and checks. * Finish GeneratorUserPanel Current implementation have some basic functionality for activating and deactivating generators. * Implement Player command that opens gui. Implement Admin command that allows to import generators. Add ability to load generator tiers into gamemode, if it does not have it. * Add missing need-restart message for some config options. * Fixes missing flag method error. * Add AOneBlock and Upgrades to softDepend list. * Implement ability to create nested GUI's. Create method that generates generator description based on input variables. * Add world as parameter for constructor. * Change visibility to build method. * Rename button to Action. * Create template for GeneratorViewPanel. * Fix issue when generatorTier icon get broken over time. * Continue to implement GeneratorViewPanel. * Add material and treasure list to GeneratorViewPanel * Add rightClick option to view Generator tier properties. * Add View player command that opens Generator Tier view panel from command. * Implement Data loading on player joining the server. * Add proper generator data creation and removing on island creation and deleting. * Add generator that operates only in the nether. * Fix some issues in generatorTemplate * Update default config file. * Update permission list in addon.yml. * Fix logging message. * Create Constants file that contains most of used strings in guis an messages. Update and fix locale usage in whole addon. * Fixes locales file. * A lot of small debug fixes. - Init maps with collections that can be populated. - Use TreeMap instead of simple Map, as it would avoid any casting. - Add nonNull filter while getting existing islands in worlds. - Prevent generator description to add text to it when user opens GUI. * Fix an issue when activeFilterButton cause null-pointer when opening gui. * Create 'generator why' command that will allow easier debugging. Add a separate Why class that will manage reporting. * Fix generator descriptions in template. * Add GeneratorTierAdapter that will manage storing generator tier sets into database. Change string sets to object sets in GeneratorDataObject. Fix some other small bugs related to object saving and loading. * Implement ability to purchase generator tiers from GeneratorViewPanel. * Add 1.15.2 compatibility. Note: Basalt generators will not work. * Use jetbrains annotations instead of istack internal. * Fixes tests. Supports database storage and new onEnable messages * Fixes permission checking bug. #54 * Update `default-active-generators` comment. * Fixes #55 * Update to BentoBox 1.14.0 * Return snapshot version. Misunderstand the announcement message. * Removed reference to Likes in config.yml * Fix issue when generator were not imported into memory * Fix issue when generators did not work. The issue was that I changed how active generators are stored. Instead of storing generatorId in island data, I am now storing generatoTierObjects, to avoid mapping and make if faster. However If forgot to change it there. * Fix issue when users were not able to import basalt generator. (#57) * Fix an issue when displayed chance number was not relevant to player. Implement ability to specify number for chance with calculated value and 1-5 digits after comma. Fixes #57 and #43 * Fixes #56 Use island delete event instead of deleted. * Add placeholders for generator: - `[gamemode]_magiccobblestonegenerator_active_generator_count` - returns number of currently active generators on player island. - `[gamemode]_magiccobblestonegenerator_max_active_generator_count` - returns number of maximal allowed active generators at the same time. - `[gamemode]_magiccobblestonegenerator_active_generator_names` - returns list of active generator names separated with `,`/ - `[gamemode]_magiccobblestonegenerator_unlocked_generator_names` - returns list of unlocked generator names separated with `,`/ - `[gamemode]_magiccobblestonegenerator_purchased_generator_names` - returns list of purchased generator names separated with `,`/ * Preprare release (#58) * Add toUppercase for material reading from template file. * Prepare release Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com> Co-authored-by: tastybento <tastybento@wasteofplastic.com> Co-authored-by: Florian CUNY <poslovitch@gmail.com> Co-authored-by: xXjojojXx <36734820+xXjojojXx@users.noreply.github.com> Co-authored-by: tastybento <tastybento@users.noreply.github.com> Co-authored-by: mindw0rm <mindw0rm@web.de> Co-authored-by: ChimpGamer <Tim.Cremers@Ziggo.nl> Co-authored-by: András Marczinkó <andris155@users.noreply.github.com> Co-authored-by: Pierre LAGOUTTE <pierre.lagoutte@free.fr> * Translate pl.yml via GitLocalize Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com> Co-authored-by: organizatsiya <59617430+organizatsiya@users.noreply.github.com> Co-authored-by: AFGAME <50768722+AFGAME@users.noreply.github.com> Co-authored-by: BONNe <bonne@bonne.id.lv> Co-authored-by: tastybento <tastybento@wasteofplastic.com> Co-authored-by: Florian CUNY <poslovitch@gmail.com> Co-authored-by: xXjojojXx <36734820+xXjojojXx@users.noreply.github.com> Co-authored-by: tastybento <tastybento@users.noreply.github.com> Co-authored-by: mindw0rm <mindw0rm@web.de> Co-authored-by: ChimpGamer <Tim.Cremers@Ziggo.nl> Co-authored-by: András Marczinkó <andris155@users.noreply.github.com> Co-authored-by: Pierre LAGOUTTE <pierre.lagoutte@free.fr> Co-authored-by: Repo92 <xrepox@gmail.com>
- Loading branch information