Commit Graph

56 Commits

Author SHA1 Message Date
tastybento
4a4794f771
Release 2.7.2 (#233)
* Version 2.7.2
* Use Java 9's takeWhile
* Added placeholder %Level_[gamemode]_rank_value
Fixes https://github.com/BentoBoxWorld/Level/issues/228
* 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
* Rosestacker (#232)
* Add support for RoseStacker 1.3.0
* Made plugin a Pladdon.
2021-08-15 08:56:21 -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
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
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
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
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
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
5e56943c63 Fixes level reported in the console report. Was old level. 2020-07-11 15:34:49 -07:00
tastybento
85cd89bdf7 Added timings, fixed bugs. 2020-07-04 18:13:02 -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
a6be22bfe5 Fixes bugs introduced by code smell fixes. 2020-06-25 19:17:39 -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
b92d412f0a Implements better value command
Checks world value

Fixes https://github.com/BentoBoxWorld/Level/issues/148
2020-04-21 17:24:30 -07:00
tastybento
6e64d274e8 Shifted to separate block and config settings. 2020-04-19 10:46:41 -07:00
Dalton Burchard
f779f0ca95 Add support for Wild Stacker (#124)
* Add support for Wild Stackers (Blocks Only)

* Shorten my recent commit, modified checkBlock method slightly to not pass full BlockData; rather just the Material that is used in the method
2020-01-28 08:32:52 -08:00
tastybento
1de94afe7e Adds the ability to override the level in the IslandLevelCalculatedEvent
https://github.com/BentoBoxWorld/Level/issues/125
2020-01-24 17:06:30 -08:00
tastybento
fe0f084781 Adds performance tweaking settings to config.yml
https://github.com/BentoBoxWorld/Level/issues/122
2020-01-16 13:44:23 -08:00
tastybento
ccc3ef65be Backwards compatibility restored.
Fixes https://github.com/BentoBoxWorld/Level/issues/119
2020-01-11 09:12:59 -08:00
tastybento
187e491bea Updated to BentoBox 1.11.0 API
Fixes https://github.com/BentoBoxWorld/Level/issues/117
2020-01-10 14:05:00 -08:00
tastybento
eba6e11ec9 Revert "Use enum map"
This reverts commit 09583aa3a7.
2019-12-19 11:40:33 -08:00
tastybento
09583aa3a7 Use enum map 2019-12-18 14:45:15 -08:00
Josh
0eb3881a56 add throttle to calculate chunks (#102)
* add throttle to calculate chunks

* dont think the synchronized is needed
2019-11-22 20:21:01 -08:00
tastybento
b3d82a6456 Adds back in nether and end level calcs.
https://github.com/BentoBoxWorld/Level/issues/101
2019-11-19 13:06:29 -08:00
tastybento
255711afa4 Fixed bugs and removed code smells. 2019-11-16 19:19:03 -08:00
tastybento
838507cc4a Uses BentoBox 1.9.0 API for PaperLib 2019-11-16 15:31:58 -08:00
tastybento
d4c9bd654d
Uses PaperLib to get chunks async (#95)
* Uses PaperLib to get chunks async.

Appears to work fine on regular Spigot too.

* Removes config settings not required anymore.

* Future is on main thread, so do calcs async

* Implements multi-threaded level calculation.

* Remove debug from version
2019-11-15 19:31:58 -08:00
tastybento
e383f79e3e Remove loadchunk from chunk snapshot. 2019-11-10 15:06:30 -08:00
tastybento
4e33df1927 Added forced chunk loading back in. 2019-11-09 20:51:41 -08:00
tastybento
55f6a124bf Does not save chunks on unloading. 2019-11-09 20:34:12 -08:00
tastybento
91a69adae1 Split out Results class. 2019-11-09 20:09:16 -08:00
tastybento
dda2e66548 Fixes code smells 2019-10-30 16:29:42 -07:00
tastybento
94114c65e1 Fixes reporting of world-specific block values in console 2019-08-17 10:28:50 -07:00
tastybento
8e2f4a4b5e Fixes bug where island world settings in config were not used
https://github.com/BentoBoxWorld/Level/issues/80
2019-08-16 19:07:13 -07:00
BONNe
0bd5bd4d10 Add ability to specify delay between each task that checks and loads chunks for level calculation. (#76)
Add ability to specify how much chunks should be loaded at the same tick.
2019-08-13 10:11:41 -07:00
tastybento
d49859bc78 Adds level calculation on login option.
https://github.com/BentoBoxWorld/Level/issues/36
2019-08-08 16:30:10 -07:00
tastybento
d5e5410b6c Enabled option to include nether and end islands in level calc
https://github.com/BentoBoxWorld/Level/issues/40
2019-08-08 16:04:07 -07:00
tastybento
76cfc506fb Allows AIR to have value
https://github.com/BentoBoxWorld/Level/issues/73
2019-08-07 08:07:19 -07:00
tastybento
da83f66f8c Avoids loading chunks when preparing the island level calc
https://github.com/BentoBoxWorld/Level/issues/68
2019-07-25 21:04:36 -07:00
tastybento
5adf2a3ef9 Fixes death counts for new islands.
Relates to https://github.com/BentoBoxWorld/Level/issues/63
and
https://github.com/BentoBoxWorld/BentoBox/pull/817
2019-07-06 11:45:58 -07:00
tastybento
908027e6ba Adds support for double slabs.
https://github.com/BentoBoxWorld/Level/issues/64
2019-07-06 10:31:42 -07:00
tastybento
1e1e53cf57 Fixes bug where materials in config showed in report.
Calculation was still zero, but the materials should just show in the
last part of the report.
2019-06-20 18:08:36 -07:00
tastybento
bb21dbb266 Added protection for unowned islands
Islands can become unowned during the async island level calculation
process.
2019-03-10 17:47:05 -07:00