Commit Graph

37 Commits

Author SHA1 Message Date
tastybento 76e0bad88a Added test class for EquationEvaluator 2024-01-13 08:50:37 -08:00
tastybento 117d15f3d0 Added more placeholders. #296
Refactored how the top ten maps are structured. In the future, it may be
best to have the key be the island.
2023-11-24 09:33:16 -08:00
tastybento 9d1a5c7476
Changed top ten internally to use islands instead of players as keys (#295)
Added %[gamemode]_top_weighted_value_x% placeholder
https://github.com/BentoBoxWorld/Level/issues/294
2023-11-19 18:08:47 -08:00
tastybento 43c898ecf7 Added test for Stats command 2023-11-18 15:22:05 -08:00
tastybento 77884f0a11 Update to BentoBox 2.0.0 API 2023-11-18 14:51:09 -08:00
tastybento 1a4077be8c Update tests 2023-11-18 14:44:49 -08:00
tastybento 713a409584
Refactor placeholders (#279)
* Update ReadMe

* Fix Jacoco

* Remove unused imports

* Remove placeholders from main class

Created a separate class for cleaner code and added a test class.
2023-02-25 11:31:49 -08:00
tastybento 0cdb15403b
Sonar Cloud code smell clean up (#278) 2023-02-09 19:32:13 -08: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 eb8c105be5 Fix failing test. 2022-03-13 15:24:12 +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 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 5485627376 Updated tests to handle async loading 2020-09-12 08:05:04 -07:00
tastybento 284f18c680 Fixes bugs with tests. Support old Biomes addons. 2020-08-21 16:21: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 fb765561af Fixes test breakage. 2020-07-04 16:00:16 -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 631b664059 Test fixes 2020-06-28 09:42:36 -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
tastybento 0a768b0648 Adds some protection around TopTen generation.
Maybe related to https://github.com/BentoBoxWorld/BSkyBlock/issues/312

It appears that the map is being corrupted due to multithreading, but
it's not clear where that is happening.
2020-05-01 16:43:09 -07:00
tastybento c463170fdd Removed uncaching as async saving can cause race condition
Fixed tests.
2020-04-19 14:02:45 -07:00
tastybento 6e64d274e8 Shifted to separate block and config settings. 2020-04-19 10:46:41 -07:00
tastybento 82cbb487de Fix LevelTest 2020-02-01 19:56:28 -08:00
tastybento 002da7594f Addresses issue with null targets and visited island placeholder
https://github.com/BentoBoxWorld/Level/issues/106

Added Level test class.
2019-11-30 18:30:08 -08:00
tastybento 255711afa4 Fixed bugs and removed code smells. 2019-11-16 19:19:03 -08:00
tastybento 05437ca14a Added admin top remove command to remove players from top ten
https://github.com/BentoBoxWorld/Level/issues/98
2019-11-16 18:56:33 -08:00
tastybento 39de2b9cc8 Adds shorthand level presentation for large level values.
https://github.com/BentoBoxWorld/Level/issues/52
2019-08-08 17:12:12 -07:00
tastybento 904522367d Updates POM to show build numbers in final name
https://github.com/BentoBoxWorld/Level/issues/74

Also updates to latest PowerMockito and Mockito2
2019-08-07 08:08:11 -07:00
tastybento cb2ea7dc5b Completed test cases for TopTen 2019-08-01 22:37:29 -07:00
tastybento b950177ead Fixed permission bug where players were not added to top ten
https://github.com/BentoBoxWorld/Level/issues/71

Added test case classes - still a WIP
2019-07-31 23:32:20 -07:00
tastybento ddbe806af5 Fixes a load of bugs.
https://github.com/BentoBoxWorld/Level/issues/41
https://github.com/BentoBoxWorld/Level/issues/44
https://github.com/BentoBoxWorld/Level/issues/45
2019-02-21 19:56:44 -08:00
BONNe1704 bdb0331dc1 Fix failing UnitTest.
Test was failing because getTeamLeader method was switched to getOwner.
2018-12-18 10:22:33 +02:00
Florian CUNY 70d29e62ae The Flattening & renamed the addon "Level" instead of "BentoBox-Level" 2018-10-31 14:09:56 +01:00