Commit Graph

168 Commits

Author SHA1 Message Date
tastybento
dc9d460e1e Fix JavaDoc 2023-01-16 15:07:00 -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
ac6bead52e Add natural log to level-calc formula parsing
Relates to #274
2023-01-16 14:16:14 -08:00
tastybento
93869cb34a Only shows Members or higher in the top members placeholder
Fixes #267
2022-11-26 18:29:03 -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
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
dae3db6c98 Implements visit/warp actions in top gui
Add 2 new actions for island buttons in TOP GUI:
- Visit -> allows to visit island, but it requires Visit Addon
- Warp -> allows to warp to island, but it requires Warp Addon

Requested via Discord.
2022-08-21 13:00:56 +03:00
DeadSilenceIV
90ae98e599
Support for AdvancedChests was updated. (#266) 2022-07-15 01:53:27 +03:00
BONNe
47053fde31
Implement customizable Values GUI. (#262)
This GUI shows value to all items in game. It also shows max limit of blocks, if it is set.

Fixes of #192
2022-06-17 14:40:10 +03:00
BONNe
1914fc11e0
Implement calculated value for blocks. (#260)
It is ~ value, as calculation formula cannot be applied per block. At least I think so.

Part of #192
2022-06-16 17:38:09 +03:00
BONNe
4948689fe8
Implement feature that allows to sort items in detail panel. (#259)
Apparently, because it is 2 years old request, it got in a state -> implement or drop.

Fixes #192
2022-06-16 17:07:09 +03:00
BONNe
15ff515078 Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
2022-03-13 14:28:08 +02:00
BONNe
43fcde5781 Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
2022-03-13 14:26:56 +02:00
BONNe
e16fad882e Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.

Implement customizable TopLevelPanel.
2022-03-12 12:52:44 +02:00
tastybento
0a79b7fa58 Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
2022-02-06 08:47:20 -08:00
tastybento
336e8d47bf Attempt to handle WildStacker spawners 2022-01-28 22:15:34 -08:00
Pierre Dedrie
4a21e4b30c
Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246) 2021-12-18 17:22:28 -08:00
Rubén
cc977d8562
Raw island level placeholder (#241) 2021-11-26 13:11:30 -08:00
tastybento
b1d117d344 Speeds up level calculation by doing more chunk scans async.
If chests are scanned, then it will take longer because these have to be
done sync.

https://github.com/BentoBoxWorld/Level/issues/243
2021-11-21 20:08:05 -08:00
tastybento
d212fcee99 Update to BentoBox API 1.18 2021-10-01 17:40:07 -07:00
tastybento
1b29f7f6ac Added new placeholders
%Level_%gamemode%_top_island_name_%rank% - lists the island name
%Level_%gamemode%_top_island_members_%rank% - a comma separated list of
team members

https://github.com/BentoBoxWorld/Level/issues/224
https://github.com/BentoBoxWorld/Level/issues/211
https://github.com/BentoBoxWorld/Level/issues/132
https://github.com/BentoBoxWorld/Level/issues/107
https://github.com/BentoBoxWorld/Level/issues/105
2021-09-06 11:57:32 -07:00
tastybento
bd6c264f4d
Rosestacker (#232)
* Add support for RoseStacker 1.3.0
2021-08-09 20:00:55 -07: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
76a2688556 Added placeholder %Level_[gamemode]_rank_value
Fixes https://github.com/BentoBoxWorld/Level/issues/228
2021-07-24 14:54:06 -07:00
tastybento
4661bcd109 Use Java 9's takeWhile 2021-07-24 14:26:45 -07:00
tastybento
452bf88197 Added API to work out which game modes Level is active in. 2021-06-05 08:33:03 -07:00
tastybento
04596915ce Pladdon version 2021-05-30 18:40:58 -07:00
tastybento
eba7e1d531 Use a constant instead of 10 throughout code. 2021-05-02 07:54:28 -07:00
tastybento
33a3425619 Updated to support AdvancedChests 15.0
Fixes https://github.com/BentoBoxWorld/Level/issues/218
2021-04-08 16:49:18 -07:00
tastybento
fdf5da43c6 Deaths were counted twice if team deaths were counted.
Fixes https://github.com/BentoBoxWorld/Level/issues/216
2021-03-24 22:37:50 -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
12525271c8 Adds support for AdvancedChests. Requires version 14.3
https://github.com/BentoBoxWorld/Level/issues/214
2021-02-24 17:29:29 -08:00
tastybento
311455e921 Add support to hook into AdvancedChests.
https://github.com/BentoBoxWorld/Level/issues/214
2021-02-23 18:59:20 -08:00
tastybento
52ee81501b Try to get WildStackers to work again. 2021-02-20 19:07:08 -08:00
Alberto
aeb48c6f3e
setLogReportToConsole to ConfigSettings (#209) 2021-01-28 07:30:45 -08:00
Alberto
25ba4dc7eb
"Log report to console" config option (#208)
* log-report-to-console added to config.yml

* logReportToConsole added to ConfigSetting

* Check if isLogReportToConsolet to show report

* Fix return logReportToConsole
2021-01-25 13:25:29 -08:00
tastybento
7973ef1154 Updated to BentoBox 1.15.4 API 2020-12-27 11:10:53 -08:00
tastybento
e2d3150fa2 getHighestBlockYAt() does not detect heads so check full height of world
Fixes https://github.com/BentoBoxWorld/Level/issues/193
2020-09-27 17:29:13 -07: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
0d1a10ff6f Fixes issue with initial level calculations and reporting.
https://github.com/BentoBoxWorld/Level/issues/189
2020-09-12 11:59:45 -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
8f85e90830 Fixes deprecated getLevelsData method.
Tested with Biomes 1.7.0.
2020-08-21 16:40:32 -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
000463e10c Adds new config options. Prevents queue stuffing.
Players without cooldowns will not be able to stuff the level queue with
calculation requests. Only one island level calculation at a time.

Watch dog timeout on calculations added. Default 5 minutes.

Config option to not use island zeroing.
2020-08-15 10:01:16 -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
507cefd128 Additional lower case world naming.
https://github.com/BentoBoxWorld/Level/issues/172
2020-07-21 07:49:13 -07:00