Commit Graph

232 Commits

Author SHA1 Message Date
tastybento
4c59d4d4ae Back support for BentoBox 1.16.5. 2021-10-04 23:01:57 -07: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
7b6f921b10 Made plugin a Pladdon. 2021-08-15 08:53:16 -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
9b7557f470 Fix DIRT_PATH instead of GRASS_PATH 2021-06-20 17:31:52 -07:00
tastybento
7379f6c3e8 Merge branch 'develop' of https://github.com/BentoBoxWorld/Level.git into develop 2021-06-20 10:39:16 -07:00
tastybento
54ac6f5499 Update to Java 16 and new sonar cloud 2021-06-20 10:39:03 -07:00
tastybento
3892da597c
Removed duplicate Blackstone entries
Fixes https://github.com/BentoBoxWorld/Level/issues/222
2021-06-10 19:48:18 -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
fb60dbddf9 Listed bentobox depend. 2021-05-31 09:43:05 -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
tastybento
d9137e83ed Merge branch 'develop' of https://github.com/BentoBoxWorld/Level.git into develop 2021-02-14 12:58:11 -08:00
tastybento
cb9a49d6ec Allow usage on all game modes to avoid support questions.
Fixes https://github.com/BentoBoxWorld/Level/issues/212
2021-02-14 12:57:58 -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
Andrzej
bd31363b34
fix variables (#203) 2020-12-03 13:14:15 -08:00
gitlocalize-app[bot]
ff1f813751
Translate pl.yml via GitLocalize (#202)
Co-authored-by: therazerpll <therazerpl@o2.pl>
2020-11-07 16:16:12 -08:00
gitlocalize-app[bot]
ac601d438d
Translate pt.yml via GitLocalize (#195)
Co-authored-by: Ricardo Borsato <ricardoborrb@gmail.com>
2020-10-02 14:44:10 -07: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
tastybento
811918eec6 Fixed missing lower case conversion for world name. 2020-07-20 23:17:09 -07:00
tastybento
ee4c6ef02c Do not take chunk snapshot async. 2020-07-18 21:10:10 -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
5e56943c63 Fixes level reported in the console report. Was old level. 2020-07-11 15:34:49 -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