-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to 1.21.3 and CodeMC #138
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quality Gate passedIssues Measures |
tastybento
added a commit
that referenced
this pull request
Nov 24, 2024
* Update pom.xml * BentoBox 2.0.0 API * Updated Github Build Action * Avoid potential error if island owner is null User.getInstance(island.getOwner()); * Added initial test class for StoneGeneratorManager. Refactored some code to not use Optional as a method parameter. * Added tests. * Try org.apache.commonscommons-lang3 to compile * Upgrade to BentoBox 2.0.0 and Spigot 1.20 * Update to 1.20.4 * Update BentoBox 2.0.0 API for RanksManager * Update TIPPED ARROW to use Spigot API in panels * Update to Java 21 * Fix project key * Validate island data once owner is changed Add TeamSetownerEvent that validates unlocked generatrs once owner is changed. * Return the Pladdon that was made. * Only register IslandLevelListener if Level addon is present (#134) * Update to 1.21.3 and CodeMC (#138) * Update to 1.21.3 and CodeMC * Fix typo * Update versions in POM * Update POM, fix JavaDoc * Update POM * Update maven-compiler-plugin --------- Co-authored-by: BONNe <[email protected]> Co-authored-by: IAISI <[email protected]>
tastybento
added a commit
that referenced
this pull request
Nov 24, 2024
* Update pom.xml * BentoBox 2.0.0 API * Updated Github Build Action * Avoid potential error if island owner is null User.getInstance(island.getOwner()); * Added initial test class for StoneGeneratorManager. Refactored some code to not use Optional as a method parameter. * Added tests. * Try org.apache.commonscommons-lang3 to compile * Upgrade to BentoBox 2.0.0 and Spigot 1.20 * Update to 1.20.4 * Update BentoBox 2.0.0 API for RanksManager * Update TIPPED ARROW to use Spigot API in panels * Update to Java 21 * Fix project key * Validate island data once owner is changed Add TeamSetownerEvent that validates unlocked generatrs once owner is changed. * Return the Pladdon that was made. * Only register IslandLevelListener if Level addon is present (#134) * Update to 1.21.3 and CodeMC (#138) * Update to 1.21.3 and CodeMC * Fix typo * Update versions in POM * Update POM, fix JavaDoc * Update POM * Update maven-compiler-plugin --------- Co-authored-by: BONNe <[email protected]> Co-authored-by: IAISI <[email protected]>
tastybento
added a commit
that referenced
this pull request
Dec 19, 2024
* Improved French translation (#35) * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize Co-authored-by: organizatsiya <[email protected]> Co-authored-by: AFGAME <[email protected]> * 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 <[email protected]> * 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 <[email protected]> Co-authored-by: Florian CUNY <[email protected]> Co-authored-by: xXjojojXx <[email protected]> Co-authored-by: tastybento <[email protected]> Co-authored-by: mindw0rm <[email protected]> Co-authored-by: ChimpGamer <[email protected]> Co-authored-by: András Marczinkó <[email protected]> Co-authored-by: Pierre LAGOUTTE <[email protected]> * Add Chinese translation (#74) * Translate zh-CN.yml via GitLocalize * Translate zh-CN.yml via GitLocalize Co-authored-by: Zhao Zuohong <[email protected]> Co-authored-by: mt-gitlocalize <[email protected]> * Prepare Release 2.2.0 (#80) * Fix failing test. (#64) * Fix grammar (#67) * Fix grammer * Changed "How to use" * Version up * Update README.md Fixed link to docs * GeneratorBuyEvent (#71) * Implement ability to define mixed generator types in each tier. The naming is self explanatory and I do not think it requires clarification. * Add proper Why debug output for MCG generators. * Fix a bug with Vault Economy not found in loading process. If plugin that enables Vault do it after BentoBox, then a lot of addons disabled their economy settings. This should fix it. * Add Polish translation (#73) * Improved French translation (#35) * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize Co-authored-by: organizatsiya <[email protected]> Co-authored-by: AFGAME <[email protected]> * 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 <[email protected]> * 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 <[email protected]> Co-authored-by: Florian CUNY <[email protected]> Co-authored-by: xXjojojXx <[email protected]> Co-authored-by: tastybento <[email protected]> Co-authored-by: mindw0rm <[email protected]> Co-authored-by: ChimpGamer <[email protected]> Co-authored-by: András Marczinkó <[email protected]> Co-authored-by: Pierre LAGOUTTE <[email protected]> * Translate pl.yml via GitLocalize Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com> Co-authored-by: organizatsiya <[email protected]> Co-authored-by: AFGAME <[email protected]> Co-authored-by: BONNe <[email protected]> Co-authored-by: tastybento <[email protected]> Co-authored-by: Florian CUNY <[email protected]> Co-authored-by: xXjojojXx <[email protected]> Co-authored-by: tastybento <[email protected]> Co-authored-by: mindw0rm <[email protected]> Co-authored-by: ChimpGamer <[email protected]> Co-authored-by: András Marczinkó <[email protected]> Co-authored-by: Pierre LAGOUTTE <[email protected]> Co-authored-by: Repo92 <[email protected]> * Fix placeholder bug #69 * Add method that wipes island data. * Fixes #72 The issue was with object mapping. I wanted to be smarter then code allowed, and mapped actual generator tier objects inside data object. Off course, when we completely remove and create objects from scratch... it cannot keep this map correct. * Implement Generator Bundles. This allows to group several generators together and limit users to use only them. It could be done via permissions. * Filter out undeployed generator tiers in StoneGeneratorManager#getIslandGeneratorTiers instead of StoneGeneratorManager#getAllGeneratorTiers * Add Clone method to internal data objects. * Implement database export and import functions. * Add log messages when data are removed from database. * First Admin Panel implementation... Add all buttons (empty) that will be in the Panel. Implement confirmation Conversation that requires user input for certain operations. * Add an ability to export database file via AdminPanel. Implement conversation API that gets id for file. * Fix an issue when exported file did not contain uniqueId value. * Add SettingsPanel that can edit all addon settings from ingame. * Add functional LibraryPanel. - Add ability to load template files via LibraryPanel - Add ability to load database export via LibraryPanel - Add ability to load web library files via LibraryPanel Create WebLibrary that checks files in BentoBoxWorld/weblib/mcg repository. * Add ability to manage generators via GUI. Add GeneratorManagePanel which allows to add/remove/modify generators. Add GeneratorEditPanel which allows to edit a specific generator. - Allows to edit all these generator options. A lot of Utils and GuiUtils methods for easier usage method usage. * Fixes #76 This issue happened after transformation to new ID... this should fix it. * Fix reported crash in discord. The crash can happen if the user has specified treasures but haven't defined the maximal amount of them. * Fixes NullPointer in Import Manager The crash can happen if using a template file without a bundles section in it. This will fix it as bundles are not required. Fixes #77 * Implement BundleManagePanel and BundleEditPanel. Fix some small bugs. Disable remove button if no elements are selected. * Rename GeneratorAdminPanel to AdminPanel for better code viewing. * Fixes a crash message when selecting generator without blocks or treasures. * Fix an issue when bundle icon was overwritten. * Separate owner and island data for bundle, range and generator count. Set that all default generators are always active, if there is a change for block to generate. Users will not be able to turn them off. Owner range, bundle and generator count will be used if defined. Rename workingRange to defaultWorkingRange in config. * Fixes an incorrect set command. * Clean up island unlocked generators. * Implement IslandManagePanel and IslandEditPanel for admins. Add SelectBundlePanel which allows to select bundle. * Update to BentoBox 1.15 API * Rework locale for Magic Cobblestone Generator. * Add Search Block button in SelectBlocksPanel. Fixes incorrect block and biome name setting in GUIs. * Add proper GeneratorActivationEvent and GeneratorBuyEvent. * Add generator buy command for players. * Add generator activate command for players. * Fix an issue that displays help command on each admin command call. * Add IslandLevelListener that is triggered on level calculation. This listener will check all generators and unlocks them, if it is necessary. Also it will display user message which on click will allow to instantly purchase/activate generator. * Change Treasures from Material to ItemStack. Fixes GUIs and methods so they support ItemStacks properly. * Add an ability to drag and drop treasures from inventory to the gui. * Fix page indexing for next and previous page in Edit GUI. Fix an issue when display name was empty and icon was not showed. * Add item description and correct icon to user view in GUI for treasures. * Add an ability to use different command aliases for all player commands and main admin command. * Implement locked icon for generators. Each generator now can define its own locked icon. By default it is barrier block. * Fix filters by generator type. Filter button should be showed only when it makes a sense. * Add some user GUI customization options. - allow to hide filter buttons in user GUI. - allow to change border block in user GUI. - allow to change border block name in user GUI. * Add an ability to disable notifications that are send about unlocking new generators. * Rework generator lore generation. Now locale supports customizable lore message for generators, so admins could choose what and which order to display. * Add an ability to reset bundle vie SelectBundlePanel. Create dummy bundle object that will be added to SelectBundlePanel and is a way how to select that island has no bundle. * Fix failing unit-test * Remove unnecessary imports. * Fix an issue when users could activate/deactivate default generators. It should not happen, as default generators are always active. * Fix an issue when GeneratorViewPanel was not updating border block and border block name. * Update readMe with some extra information. * Update readMe with some extra information. * Implement configurable click actions for User GUI. Via settings admins can specify which click type will open detailed view, toggle or buy generator. * Fixes wrong shift-click references * Implement functionality which allows to automatically deactivate oldest generator, if activate generator count is reached. * Fixes an issue when non-existing generators breaks user gui. Fixes an issue when undeployed generators cannot be turned off. * Fixes incorrectly generated generator and bundle from template file. * Fixes some bugs in IslandEditPanel. - Create proper tool tips. - Disable an ability to lock default generators - Add message to the unlock action if generator is not deployed or is default generator. * Improve default generatorTemplate.yml * Fix incorrect tag for version. * Add missing database command. * Add overwriteOnActivate to the SettingsPanel. * Fixes #81 There was mistake in sign. There should be "+ 1" instead of "-1" * Edited en-US.yml (#82) I adjusted the translations to sound more natural and accurate. * Add proper Bukkit API event usage. * Reformat whole code by applying my "ugly" codding style. Co-authored-by: johncsuti <[email protected]> Co-authored-by: tastybento <[email protected]> Co-authored-by: Yasin <[email protected]> Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com> Co-authored-by: organizatsiya <[email protected]> Co-authored-by: AFGAME <[email protected]> Co-authored-by: tastybento <[email protected]> Co-authored-by: Florian CUNY <[email protected]> Co-authored-by: xXjojojXx <[email protected]> Co-authored-by: mindw0rm <[email protected]> Co-authored-by: ChimpGamer <[email protected]> Co-authored-by: András Marczinkó <[email protected]> Co-authored-by: Pierre LAGOUTTE <[email protected]> Co-authored-by: Repo92 <[email protected]> * French translation (#110) * Translate fr.yml via GitLocalize * Translate fr.yml via GitLocalize Co-authored-by: mt-gitlocalize <[email protected]> Co-authored-by: n54b <[email protected]> * Spanish translation (#111) * Translate es.yml via GitLocalize * Translate es.yml via GitLocalize * Translate es.yml via GitLocalize Co-authored-by: mt-gitlocalize <[email protected]> Co-authored-by: Sniper739 <[email protected]> Co-authored-by: User0f1 <[email protected]> * Translate de.yml via GitLocalize (#112) Co-authored-by: mt-gitlocalize <[email protected]> * Chinese Translation (#113) * Translate zh-CN.yml via GitLocalize * Translate zh-CN.yml via GitLocalize Co-authored-by: Conn_Lost <[email protected]> * Translate zh-TW.yml via GitLocalize (#114) Co-authored-by: exkuretrol <[email protected]> * Release 2.4.0 (#115) * GitHub workflows Sonar Cloud analysis * Refactored to avoid NPE warning. Although you can skip a loop by making the list empty, it's cleared to be explicit that the code should not be run if reader is null. * Moved declarations to top of file. SonarCloud says that the @Mocks need to be declared before use. * input can be null, so null checks added. * Init next version. * Update Maven Shade plugin * Use slightly different configuration for maven package plugin * Add missing icon for Purchase Price icon in GUI * Added a ActiveGeneratorNamesRequestHandler (#97) * Added a ActiveGeneratorNamesRequestHandler * Rearrange code to correspond to my ugly codding style. * Change request name to active-generator-names The previous name was cryptic and did not match to return value. * Don't run sonarcloud with PRs (#98) PRs don't have access to the sonar secret and all PR builds would fail otherwise. * Implement required biomes in default generators. * Implement GeneratorDataRequestHandler. Handler requires `generator` metadata where value are the requested generator id. If the input is incorrect (missing generator metadata), it returns null. If there is no generator with given ID, it returns empty map. If there is a generator, it returns full (raw) data about it. * Fixes a bug in permission check which fails if owner was not online. * Update to Spigot 1.17 and BentoBox 1.17 - Add pladdon class. - Add missing biomes.(#104) * Fix Java16 compile and test issues. Does this addon need shade plugin? * Update generatorTemplate.yml * Fixes an issue when color codes were left into UUID's. * Update to Spigot 1.18 and Java 17. Update to new Biome types. * Apply Java 17 surefire allowances. * Update .gitignore * Update code to Java 17 structures and syntax. Fixed some JavaDoc errors. * Build with Java 17 in Github Action * Fixes a bug with 0 priced generators not being able to purchase. Reported in discord. * Replace GuiUtils to PanelUtils class. Add PanelUtils dependency to the MCG. * Add PagedSelector abstract class that will manage selectors with multiple pages. * Replace SelectBlocksPanel with SingleBlockSelector class. SingleBlockSelector extends PagedSelector class which contains all iterating through elements. * Replace build() with reopen(). * Rework SelectBiomePanel so it uses PagedSelector class. * Rename SelectGeneratorTypePanel to GeneratorTypeSelector * Create CommonPagedPanel class that contains all functionality for paging mechanism * Replace SelectBundlePanel with BundleSelector witch uses CommonPagedPanel class. * Cleanup IslandEditPanel * Cleanup IslandManagePanel. Fix some code style issues and migrate it to the CommonPagedPanel. * Cleanup LibraryPanel. Fix some code style issues and migrate it to the CommonPagedPanel. Convert LibraryEntry to record. * Cleanup GeneratorManagePanel. Fix some code style issues and migrate it to the CommonPagedPanel. * Migrate IslandEditPanel to CommonPagedPanel. * Clean up GeneratorEditPanel * Clean up BundleManagePanel. Migrate it to CommonPagedPanel to use common paging mechanism. * Clean up BundleEditPanel. Migrate it to CommonPagedPanel to use common paging mechanism. * Remove data saving on server shutdown. Data is saved upon change. * Clean up methods. * Implement customizable GeneratorUserPanel. It allows users to customize user panel as they want. * Implement customizable GeneratorViewPanel. It allows users to customize view panel as they want. * Remove unnecessary GUI section that are implemented via custom guis. * Implement usage of Bank Addon. Adding new Settings option: use-bank. Implement all economy part going through bank addon, if use-bank is enabled. * Implement ability for admins to bypass money withdraw when changing things via admin menu. * Implement ability to change Active Generator Tier (-s) for spawn island (#108) * Exempt spawn island from "offline-generation" limitation (#107) Co-authored-by: tastybento <[email protected]> Co-authored-by: Risto Lahtela <[email protected]> * Translate de.yml via GitLocalize (#116) Co-authored-by: Patrick <[email protected]> * Machine translation is good enough for now (#124) * Translate tr.yml via GitLocalize * Translate tr.yml via GitLocalize * Translate tr.yml via GitLocalize * Translate tr.yml via GitLocalize --------- Co-authored-by: mt-gitlocalize <[email protected]> Co-authored-by: vicdum <[email protected]> Co-authored-by: Over_Brave <[email protected]> * Resolve Placeholder translations (#125) * Translate ru.yml via GitLocalize * Translate ru.yml via GitLocalize * Translate ru.yml via GitLocalize --------- Co-authored-by: mt-gitlocalize <[email protected]> Co-authored-by: BONNe <[email protected]> Co-authored-by: Marmur2020 <[email protected]> * Downgrade to 2.5.1 * Translate uk.yml via GitLocalize (#128) Co-authored-by: GIGABAIT <[email protected]> * Vietnamese translation (#132) * Translate vi.yml via GitLocalize * Translate vi.yml via GitLocalize --------- Co-authored-by: Danh <[email protected]> Co-authored-by: mt-gitlocalize <[email protected]> * Translate ru.yml via GitLocalize (#131) Co-authored-by: mt-gitlocalize <[email protected]> * Translate de.yml via GitLocalize (#130) Co-authored-by: Nico Mexis <[email protected]> * Release 2.6.0 (#129) * Update pom.xml * BentoBox 2.0.0 API * Updated Github Build Action * Avoid potential error if island owner is null User.getInstance(island.getOwner()); * Added initial test class for StoneGeneratorManager. Refactored some code to not use Optional as a method parameter. * Added tests. * Try org.apache.commonscommons-lang3 to compile * Upgrade to BentoBox 2.0.0 and Spigot 1.20 * Update to 1.20.4 * Update BentoBox 2.0.0 API for RanksManager * Update TIPPED ARROW to use Spigot API in panels * Update to Java 21 * Fix project key * Validate island data once owner is changed Add TeamSetownerEvent that validates unlocked generatrs once owner is changed. * Return the Pladdon that was made. * Only register IslandLevelListener if Level addon is present (#134) * Update to 1.21.3 and CodeMC (#138) * Update to 1.21.3 and CodeMC * Fix typo * Update versions in POM * Update POM, fix JavaDoc * Update POM * Update maven-compiler-plugin --------- Co-authored-by: BONNe <[email protected]> Co-authored-by: IAISI <[email protected]> * Release 2.6.0 (#139) * Update pom.xml * BentoBox 2.0.0 API * Updated Github Build Action * Avoid potential error if island owner is null User.getInstance(island.getOwner()); * Added initial test class for StoneGeneratorManager. Refactored some code to not use Optional as a method parameter. * Added tests. * Try org.apache.commonscommons-lang3 to compile * Upgrade to BentoBox 2.0.0 and Spigot 1.20 * Update to 1.20.4 * Update BentoBox 2.0.0 API for RanksManager * Update TIPPED ARROW to use Spigot API in panels * Update to Java 21 * Fix project key * Validate island data once owner is changed Add TeamSetownerEvent that validates unlocked generatrs once owner is changed. * Return the Pladdon that was made. * Only register IslandLevelListener if Level addon is present (#134) * Update to 1.21.3 and CodeMC (#138) * Update to 1.21.3 and CodeMC * Fix typo * Update versions in POM * Update POM, fix JavaDoc * Update POM * Update maven-compiler-plugin --------- Co-authored-by: BONNe <[email protected]> Co-authored-by: IAISI <[email protected]> * Version 2.6.0 * Certain economy plugins throw an error if the withdraw amount is 0. This bug was reported in the discord server. The code should just stop there and not even try to withdraw if the cost is 0 * Certain economy plugins throw an error if the withdraw amount is 0. This bug was reported in the discord server. The code should just stop there and not even try to withdraw if the cost is 0 --------- Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com> Co-authored-by: organizatsiya <[email protected]> Co-authored-by: AFGAME <[email protected]> Co-authored-by: BONNe <[email protected]> Co-authored-by: tastybento <[email protected]> Co-authored-by: Florian CUNY <[email protected]> Co-authored-by: xXjojojXx <[email protected]> Co-authored-by: tastybento <[email protected]> Co-authored-by: mindw0rm <[email protected]> Co-authored-by: ChimpGamer <[email protected]> Co-authored-by: András Marczinkó <[email protected]> Co-authored-by: Pierre LAGOUTTE <[email protected]> Co-authored-by: Zhao Zuohong <[email protected]> Co-authored-by: mt-gitlocalize <[email protected]> Co-authored-by: johncsuti <[email protected]> Co-authored-by: Yasin <[email protected]> Co-authored-by: Repo92 <[email protected]> Co-authored-by: n54b <[email protected]> Co-authored-by: Sniper739 <[email protected]> Co-authored-by: User0f1 <[email protected]> Co-authored-by: Conn_Lost <[email protected]> Co-authored-by: exkuretrol <[email protected]> Co-authored-by: Risto Lahtela <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: vicdum <[email protected]> Co-authored-by: Over_Brave <[email protected]> Co-authored-by: Marmur2020 <[email protected]> Co-authored-by: GIGABAIT <[email protected]> Co-authored-by: Danh <[email protected]> Co-authored-by: Nico Mexis <[email protected]> Co-authored-by: IAISI <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.