Commit Graph

35 Commits

Author SHA1 Message Date
tastybento 0cdb15403b
Sonar Cloud code smell clean up (#278) 2023-02-09 19:32:13 -08:00
evlad fba73948c6
feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder

* Update IslandLevels.java
2023-01-16 23:00:40 +00:00
tastybento f3ee8a381c Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
2022-11-26 18:20:14 -08:00
BONNe 2ca4e0a070 Fixes a Level addon crash on startup.
Level addon crashed at the startup if Visit or Warps addon were not installed. It happened because Level addon main class were implementing Listener interface.
To avoid it and fix the crash, I moved migration listener to a separate class.

Fixes #2012
2022-08-21 17:31:42 +03:00
BONNe 15ff515078 Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
2022-03-13 14:28:08 +02:00
tastybento d55f66f868
No save on disable (#231)
* Release 2.6.4

* Remove saving to database on disable.

https://github.com/BentoBoxWorld/Level/issues/229

First, the top ten tables are never actually used or loaded. They are
created in memory by loading the island levels. So there is no reason to
keep saving them.
Second, the island level data is saved every time it is changed, so
there is no need to save all of the cache on exit.

* Fixes tests
2021-08-08 11:09:36 -07:00
tastybento 4661bcd109 Use Java 9's takeWhile 2021-07-24 14:26:45 -07:00
tastybento eba7e1d531 Use a constant instead of 10 throughout code. 2021-05-02 07:54:28 -07:00
tastybento 6dc8aa7f09 Enables rank of non-top ten players to be shown.
https://github.com/BentoBoxWorld/Level/issues/215
2021-02-28 09:33:11 -08:00
tastybento bfed6c75eb No longer fire the AddonEvent, only fire BentoBoxEvent
This may affect plugins that listen for the event.
2020-09-13 11:21:58 -07:00
tastybento b5e161d59e Rationalize output of IslandLevelCalculatedEvent
Level is now the fully calculated level, i.e., what the user sees. The
initial level is subtracted if the config settings are set to do that.

https://github.com/BentoBoxWorld/Level/issues/188
2020-09-12 08:47:09 -07:00
tastybento aed06b74c0 Remove initial island level from fireIslandLevelCalcEvent
if addon has zero island level set

https://github.com/BentoBoxWorld/Level/issues/189
2020-09-12 08:22:14 -07:00
tastybento 732d2ea039 Rebuild top tens on load.
https://github.com/BentoBoxWorld/Level/issues/187
2020-09-07 11:20:45 -07:00
tastybento 284f18c680 Fixes bugs with tests. Support old Biomes addons. 2020-08-21 16:21:02 -07:00
tastybento 6c168731d8 Ignore island initial level if island levels are not zeroed.
Set BEDROCK to value 0 by default.
2020-08-15 10:16:56 -07:00
tastybento 9b1e24810a Do not show player head if no island
Fixes https://github.com/BentoBoxWorld/Level/issues/179
2020-07-28 15:01:02 -07:00
tastybento dab0e84bc0
Island levels (#178)
* Stores level data on a per island basis

* Migrate after BentoBox worlds have loaded.

* Added new Admin set initial level handicap command

* Bug fixing

* Fix test

* Removed code smell
2020-07-26 14:40:17 -07:00
tastybento 3cc887b6d3 Adds concurrent island leveling.
New config.yml entry. Can do concurrent checks up to amount admin
decides.
Fixes issue with reloading where the queue was not disabled and
continued to run.
2020-07-18 13:39:10 -07:00
tastybento 6160a3acee Fixed bug with missing rank text in Top Ten 2020-07-12 19:36:42 -07:00
tastybento 9fb7d7897d Handles null values for LevelsData
https://github.com/BentoBoxWorld/Level/issues/169
2020-07-10 20:36:58 -07:00
tastybento ad69385607 Fixed sonar cloud code smells. 2020-07-05 16:52:03 -07:00
tastybento 45577e446f Fixes bug where when upgrading, level may not show. 2020-07-04 20:36:30 -07:00
tastybento 85cd89bdf7 Added timings, fixed bugs. 2020-07-04 18:13:02 -07:00
tastybento 7f75caab36 Merge branch 'develop' into details-gui 2020-07-04 16:00:43 -07:00
tastybento 39e294eaf6 Fixes bug where top ten was cleared after reloading.
https://github.com/BentoBoxWorld/Level/issues/163
2020-07-04 15:46:36 -07:00
tastybento ee5217519a Added details tab 2020-07-04 14:36:37 -07:00
tastybento 3c1cdaafab Adds a details gui for the island. 2020-07-03 15:27:05 -07:00
tastybento 66b098ec73 Adds more API to enable Level manipulation from plugins 2020-07-03 12:16:13 -07:00
tastybento 071d3d06d5 Add getLevelsData method to Level for API compatibility
Biomes uses it.
2020-07-03 09:48:41 -07:00
tastybento f0e983db44 Fixes bugs with top ten and duplications
Fixes https://github.com/BentoBoxWorld/Level/issues/161
2020-07-02 18:19:26 -07:00
tastybento baf0ba0974 Fixes tests. Initializes background in constructor.
The background might be customizable in the future.
2020-06-28 10:08:08 -07:00
tastybento 256c0f1aea Better looking top ten GUI with self at bottom.
https://github.com/BentoBoxWorld/Level/issues/143
2020-06-28 09:31:48 -07:00
tastybento 1a7d48a0ec Fixes issue with null placeholder error
https://github.com/BentoBoxWorld/Level/issues/159
2020-06-26 15:44:03 -07:00
tastybento d5c4e3a53c Bug fixes from sonar cloud. 2020-06-21 18:21:53 -07:00
tastybento 08b7c99c3f Complete rewrite to enable pipelining.
Adds ability to scan chest contents.
2020-06-21 17:54:51 -07:00