Commit Graph

280 Commits

Author SHA1 Message Date
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
5485627376 Updated tests to handle async loading 2020-09-12 08:05:04 -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
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
fb765561af Fixes test breakage. 2020-07-04 16:00:16 -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
631b664059 Test fixes 2020-06-28 09:42:36 -07:00
tastybento
854638be89 Admin commands are for Ops only by default. 2020-06-28 09:37:54 -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
a6be22bfe5 Fixes bugs introduced by code smell fixes. 2020-06-25 19:17:39 -07:00
tastybento
73fad8a808 Added main class methods for backward compatibility 2020-06-21 19:15:43 -07:00
tastybento
56530cecc1 Added locale for AdminLevelStatusCommand 2020-06-21 18:47:10 -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
c19ae41cbb Removes islands from Top Ten when admin deleted.
Fixes https://github.com/BentoBoxWorld/Level/issues/155
2020-06-13 08:05:33 -07:00
tastybento
f78b2c8231 Update to 1.14 BentoBox API
Uses shorter table names in SQL databases.
Uses async saving methods.
2020-06-10 20:49:28 -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
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
0a4b0af931 Check that config sections exist before trying to copy them. 2020-04-20 13:46:58 -07:00
tastybento
8788110a92 Merge branch 'develop' of https://github.com/BentoBoxWorld/Level.git into develop 2020-04-20 07:59:22 -07:00
tastybento
b2811edf99 AIR had value of 1 instead of 0 in the config. 2020-04-20 07:59:13 -07:00
Krystian
fb8377f67b
Add Polish translation (#146) 2020-04-20 07:35:38 -07:00
tastybento
a5abd10678 Fixes placeholders. 2020-04-19 15:49:16 -07:00
tastybento
fe6ad81141 Added conversion to use blockconfig.yml 2020-04-19 15:17:34 -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
d06d6883f4 Added AOneBlock perms and softdepend. 2020-04-19 09:06:54 -07:00
tastybento
e93e606b02 Removed deprecated placeholders 2020-04-19 09:06:32 -07:00
tastybento
40681190c1 Remove null cache values
https://github.com/BentoBoxWorld/Level/issues/126
2020-02-01 20:24:08 -08:00
tastybento
82cbb487de Fix LevelTest 2020-02-01 19:56:28 -08:00
tastybento
21c4737446
Czech translation. Credit @Polda18 2020-01-30 10:26:47 -08: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
b6f4c15469 Fixed typos 2020-01-16 13:45:32 -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
DuckSoft
4bf86bb07f Updating zh-CN Localization (#114)
* Sync zh-CN.yml with en-US.yml

this translation file is too old.
let's start over!

* Translating zh-CN.yml
2020-01-10 16:28:23 -08:00
gitlocalize-app[bot]
c06e69e1b5 Translate lv.yml via GitLocalize (#116)
Co-authored-by: BONNe <bonne@bonne.id.lv>
2020-01-10 16:27:57 -08:00
tastybento
d8b838cc36 Makes result of the IslandLevelCalculatedEvent easier for plugins to get
https://github.com/BentoBoxWorld/Level/issues/118
2020-01-10 16:22:44 -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
1791108ef6 Removed invalid javadoc character 2020-01-10 14:01:56 -08:00
Florian CUNY
816a077ddd Removed the warnings for deprecated placeholders 2019-12-31 11:07:44 +01:00
Gabriele C
3edb12581d Fix top10 placeholders (#110) 2019-12-24 15:45:28 +01: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
tastybento
5c9c84c98a Removed condition that always waa true. 2019-12-18 13:27:59 -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
András Marczinkó
61d3fb5779 Translated into Hungarian (#104) 2019-11-24 13:51:07 -08:00
Florian CUNY
cc1cca1453 Fixed the "deprecated" messages for topten placeholders 2019-11-23 15:19:56 +01:00
Florian CUNY
dae58b8dff Added the new top ten placeholders
Level_[gamemode]-island-top-name-# -> Level_[gamemode]_top_name_#
Level_[gamemode]-island-top-value-# -> Level_[gamemode]_top_value_#
2019-11-23 14:55:58 +01:00
Florian CUNY
801bfe6a39 New name for the level placeholder; added visited island level placeholder
Implements https://github.com/BentoBoxWorld/Level/issues/103
2019-11-23 14:45:21 +01:00
Florian CUNY
8181fbc431 "Deprecated" current placeholders (their name need to be changed) and their implementation 2019-11-23 14:43:24 +01: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
gitlocalize-app[bot]
2cea8e942f Updated German localization (#99)
* Translate de.yml via GitLocalize

* Translate de.yml via GitLocalize
2019-11-17 15:46:11 -08:00
gitlocalize-app[bot]
9066c8ddf2 Translate fr.yml via GitLocalize (#100) 2019-11-17 15:45:41 -08:00
tastybento
1282cb95b5 Merge branch 'develop' of https://github.com/BentoBoxWorld/Level.git into develop 2019-11-16 19:19:12 -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
d227606f7a
Create id.yml 2019-11-16 18:26:04 -08:00
tastybento
7ef2e35d92
Create ro.yml 2019-11-16 18:25:54 -08:00
tastybento
d6117e69d8 Properly deletes hidden players from top ten
https://github.com/BentoBoxWorld/Level/issues/98
2019-11-16 17:24:11 -08:00