2020-06-22 02:54:51 +02:00
|
|
|
package world.bentobox.level;
|
|
|
|
|
|
|
|
import java.math.BigInteger;
|
|
|
|
import java.text.DecimalFormat;
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
import java.util.AbstractMap;
|
2020-06-22 02:54:51 +02:00
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.LinkedHashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map.Entry;
|
2020-07-26 23:40:17 +02:00
|
|
|
import java.util.Objects;
|
2020-06-22 02:54:51 +02:00
|
|
|
import java.util.TreeMap;
|
|
|
|
import java.util.UUID;
|
|
|
|
import java.util.concurrent.CompletableFuture;
|
2020-09-07 20:20:45 +02:00
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
2020-06-22 02:54:51 +02:00
|
|
|
import java.util.stream.Collectors;
|
2021-02-28 18:33:11 +01:00
|
|
|
import java.util.stream.Stream;
|
2020-06-22 02:54:51 +02:00
|
|
|
|
|
|
|
import org.bukkit.Bukkit;
|
|
|
|
import org.bukkit.World;
|
|
|
|
import org.eclipse.jdt.annotation.NonNull;
|
|
|
|
import org.eclipse.jdt.annotation.Nullable;
|
|
|
|
|
2020-07-26 23:40:17 +02:00
|
|
|
import com.google.common.collect.Maps;
|
|
|
|
|
2020-06-22 02:54:51 +02:00
|
|
|
import world.bentobox.bentobox.database.Database;
|
|
|
|
import world.bentobox.bentobox.database.objects.Island;
|
|
|
|
import world.bentobox.level.calculators.Results;
|
|
|
|
import world.bentobox.level.events.IslandLevelCalculatedEvent;
|
|
|
|
import world.bentobox.level.events.IslandPreLevelEvent;
|
2020-07-26 23:40:17 +02:00
|
|
|
import world.bentobox.level.objects.IslandLevels;
|
2020-06-22 02:54:51 +02:00
|
|
|
import world.bentobox.level.objects.LevelsData;
|
|
|
|
import world.bentobox.level.objects.TopTenData;
|
Version 2.10.0 (#283)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
2023-04-16 01:44:33 +02:00
|
|
|
|
2020-06-22 02:54:51 +02:00
|
|
|
public class LevelsManager {
|
|
|
|
private static final String INTOPTEN = "intopten";
|
|
|
|
private static final TreeMap<BigInteger, String> LEVELS;
|
|
|
|
private static final BigInteger THOUSAND = BigInteger.valueOf(1000);
|
|
|
|
static {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
LEVELS = new TreeMap<>();
|
2020-06-22 02:54:51 +02:00
|
|
|
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
LEVELS.put(THOUSAND, "k");
|
|
|
|
LEVELS.put(THOUSAND.pow(2), "M");
|
|
|
|
LEVELS.put(THOUSAND.pow(3), "G");
|
|
|
|
LEVELS.put(THOUSAND.pow(4), "T");
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
Version 2.10.0 (#283)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
2023-04-16 01:44:33 +02:00
|
|
|
private final Level addon;
|
2020-06-22 02:54:51 +02:00
|
|
|
|
|
|
|
// Database handler for level data
|
2020-07-26 23:40:17 +02:00
|
|
|
private final Database<IslandLevels> handler;
|
2020-06-22 02:54:51 +02:00
|
|
|
// A cache of island levels.
|
2020-07-26 23:40:17 +02:00
|
|
|
private final Map<String, IslandLevels> levelsCache;
|
2020-06-22 02:54:51 +02:00
|
|
|
// Top ten lists
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
private final Map<World, TopTenData> topTenLists;
|
2020-06-22 02:54:51 +02:00
|
|
|
|
|
|
|
public LevelsManager(Level addon) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
this.addon = addon;
|
|
|
|
// Get the BentoBox database
|
|
|
|
// Set up the database handler to store and retrieve data
|
|
|
|
// Note that these are saved by the BentoBox database
|
|
|
|
handler = new Database<>(addon, IslandLevels.class);
|
|
|
|
// Initialize the cache
|
|
|
|
levelsCache = new HashMap<>();
|
|
|
|
// Initialize top ten lists
|
|
|
|
topTenLists = new ConcurrentHashMap<>();
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
2020-07-26 23:40:17 +02:00
|
|
|
public void migrate() {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
Database<LevelsData> oldDb = new Database<>(addon, LevelsData.class);
|
|
|
|
oldDb.loadObjects().forEach(ld -> {
|
|
|
|
try {
|
|
|
|
UUID owner = UUID.fromString(ld.getUniqueId());
|
|
|
|
// Step through each world
|
|
|
|
ld.getLevels().keySet().stream()
|
|
|
|
// World
|
|
|
|
.map(Bukkit::getWorld).filter(Objects::nonNull)
|
|
|
|
// Island
|
|
|
|
.map(w -> addon.getIslands().getIsland(w, owner)).filter(Objects::nonNull).forEach(i -> {
|
|
|
|
// Make new database entry
|
|
|
|
World w = i.getWorld();
|
|
|
|
IslandLevels il = new IslandLevels(i.getUniqueId());
|
|
|
|
il.setInitialLevel(ld.getInitialLevel(w));
|
|
|
|
il.setLevel(ld.getLevel(w));
|
|
|
|
il.setMdCount(ld.getMdCount(w));
|
|
|
|
il.setPointsToNextLevel(ld.getPointsToNextLevel(w));
|
|
|
|
il.setUwCount(ld.getUwCount(w));
|
|
|
|
// Save it
|
|
|
|
handler.saveObjectAsync(il);
|
|
|
|
});
|
|
|
|
// Now delete the old database entry
|
|
|
|
oldDb.deleteID(ld.getUniqueId());
|
|
|
|
} catch (Exception e) {
|
|
|
|
addon.logError("Could not migrate level data database! " + e.getMessage());
|
|
|
|
e.printStackTrace();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
});
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
2020-09-07 20:20:45 +02:00
|
|
|
/**
|
|
|
|
* Add an island to a top ten
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
2020-09-07 20:20:45 +02:00
|
|
|
* @param island - island to add
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @param lv - level
|
2020-09-07 20:20:45 +02:00
|
|
|
* @return true if successful, false if not added
|
|
|
|
*/
|
|
|
|
private boolean addToTopTen(Island island, long lv) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
if (island != null && island.getOwner() != null && hasTopTenPerm(island.getWorld(), island.getOwner())) {
|
|
|
|
topTenLists.computeIfAbsent(island.getWorld(), k -> new TopTenData(island.getWorld())).getTopTen()
|
|
|
|
.put(island.getUniqueId(), lv);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
2020-09-07 20:20:45 +02:00
|
|
|
}
|
|
|
|
|
2020-06-22 02:54:51 +02:00
|
|
|
/**
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* Calculate the island level, set all island member's levels to the result and
|
|
|
|
* try to add the owner to the top ten
|
|
|
|
*
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param targetPlayer - uuid of targeted player - owner or team member
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @param island - island to calculate
|
2020-06-22 02:54:51 +02:00
|
|
|
* @return completable future with the results of the calculation
|
|
|
|
*/
|
|
|
|
public CompletableFuture<Results> calculateLevel(UUID targetPlayer, Island island) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
CompletableFuture<Results> result = new CompletableFuture<>();
|
|
|
|
// Fire pre-level calc event
|
|
|
|
IslandPreLevelEvent e = new IslandPreLevelEvent(targetPlayer, island);
|
|
|
|
Bukkit.getPluginManager().callEvent(e);
|
|
|
|
if (e.isCancelled()) {
|
|
|
|
return CompletableFuture.completedFuture(null);
|
|
|
|
}
|
|
|
|
// Add island to the pipeline
|
|
|
|
addon.getPipeliner().addIsland(island).thenAccept(r -> {
|
|
|
|
// Results are irrelevant because the island is unowned or deleted, or
|
|
|
|
// IslandLevelCalcEvent is cancelled
|
|
|
|
if (r == null || fireIslandLevelCalcEvent(targetPlayer, island, r)) {
|
|
|
|
result.complete(null);
|
|
|
|
}
|
|
|
|
// Save result
|
|
|
|
setIslandResults(island, r);
|
|
|
|
// Save the island scan details
|
|
|
|
result.complete(r);
|
|
|
|
});
|
|
|
|
return result;
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
2020-07-03 21:16:13 +02:00
|
|
|
/**
|
|
|
|
* Fires the IslandLevelCalculatedEvent and returns true if it is canceled
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
2020-07-03 21:16:13 +02:00
|
|
|
* @param targetPlayer - target player
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @param island - island
|
|
|
|
* @param results - results set
|
2020-07-03 21:16:13 +02:00
|
|
|
* @return true if canceled
|
|
|
|
*/
|
2020-06-22 02:54:51 +02:00
|
|
|
private boolean fireIslandLevelCalcEvent(UUID targetPlayer, Island island, Results results) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
// Fire post calculation event
|
|
|
|
IslandLevelCalculatedEvent ilce = new IslandLevelCalculatedEvent(targetPlayer, island, results);
|
|
|
|
Bukkit.getPluginManager().callEvent(ilce);
|
|
|
|
if (ilce.isCancelled())
|
|
|
|
return true;
|
|
|
|
// Set the values if they were altered
|
|
|
|
results.setLevel((Long) ilce.getKeyValues().getOrDefault("level", results.getLevel()));
|
|
|
|
results.setInitialLevel((Long) ilce.getKeyValues().getOrDefault("initialLevel", results.getInitialLevel()));
|
|
|
|
results.setDeathHandicap((int) ilce.getKeyValues().getOrDefault("deathHandicap", results.getDeathHandicap()));
|
|
|
|
results.setPointsToNextLevel(
|
|
|
|
(Long) ilce.getKeyValues().getOrDefault("pointsToNextLevel", results.getPointsToNextLevel()));
|
|
|
|
results.setTotalPoints((Long) ilce.getKeyValues().getOrDefault("totalPoints", results.getTotalPoints()));
|
|
|
|
return ((Boolean) ilce.getKeyValues().getOrDefault("isCancelled", false));
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* Get the string representation of the level. May be converted to shorthand
|
|
|
|
* notation, e.g., 104556 = 10.5k
|
|
|
|
*
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param lvl - long value to represent
|
|
|
|
* @return string of the level.
|
|
|
|
*/
|
2020-06-27 00:44:03 +02:00
|
|
|
public String formatLevel(@Nullable Long lvl) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
if (lvl == null)
|
|
|
|
return "";
|
|
|
|
String level = String.valueOf(lvl);
|
|
|
|
// Asking for the level of another player
|
|
|
|
if (addon.getSettings().isShorthand()) {
|
|
|
|
BigInteger levelValue = BigInteger.valueOf(lvl);
|
|
|
|
|
|
|
|
Map.Entry<BigInteger, String> stage = LEVELS.floorEntry(levelValue);
|
|
|
|
|
|
|
|
if (stage != null) { // level > 1000
|
|
|
|
// 1 052 -> 1.0k
|
|
|
|
// 1 527 314 -> 1.5M
|
|
|
|
// 3 874 130 021 -> 3.8G
|
|
|
|
// 4 002 317 889 -> 4.0T
|
|
|
|
level = new DecimalFormat("#.#").format(
|
|
|
|
levelValue.divide(stage.getKey().divide(THOUSAND)).doubleValue() / 1000.0) + stage.getValue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return level;
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the initial level of the island. Used to zero island levels
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param island - island
|
|
|
|
* @return initial level of island
|
|
|
|
*/
|
|
|
|
public long getInitialLevel(Island island) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
return getLevelsData(island).getInitialLevel();
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-07-03 03:19:26 +02:00
|
|
|
* Get level of island from cache for a player.
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
|
|
|
* @param world - world where the island is
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param targetPlayer - target player UUID
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @return Level of the player's island or zero if player is unknown or UUID is
|
|
|
|
* null
|
2020-06-22 02:54:51 +02:00
|
|
|
*/
|
|
|
|
public long getIslandLevel(@NonNull World world, @Nullable UUID targetPlayer) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
if (targetPlayer == null)
|
|
|
|
return 0L;
|
|
|
|
// Get the island
|
|
|
|
Island island = addon.getIslands().getIsland(world, targetPlayer);
|
|
|
|
return island == null ? 0L : getLevelsData(island).getLevel();
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
Version 2.10.0 (#283)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
2023-04-16 01:44:33 +02:00
|
|
|
/**
|
|
|
|
* Get the maximum level ever given to this island
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
|
|
|
* @param world - world where the island is
|
Version 2.10.0 (#283)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
2023-04-16 01:44:33 +02:00
|
|
|
* @param targetPlayer - target player UUID
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @return Max level of the player's island or zero if player is unknown or UUID
|
|
|
|
* is null
|
Version 2.10.0 (#283)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
2023-04-16 01:44:33 +02:00
|
|
|
*/
|
|
|
|
public long getIslandMaxLevel(@NonNull World world, @Nullable UUID targetPlayer) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
if (targetPlayer == null)
|
|
|
|
return 0L;
|
|
|
|
// Get the island
|
|
|
|
Island island = addon.getIslands().getIsland(world, targetPlayer);
|
|
|
|
return island == null ? 0L : getLevelsData(island).getMaxLevel();
|
Version 2.10.0 (#283)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
2023-04-16 01:44:33 +02:00
|
|
|
}
|
|
|
|
|
2020-06-22 02:54:51 +02:00
|
|
|
/**
|
|
|
|
* Returns a formatted string of the target player's island level
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
|
|
|
* @param world - world where the island is
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param targetPlayer - target player's UUID
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @return Formatted level of player or zero if player is unknown or UUID is
|
|
|
|
* null
|
2020-06-22 02:54:51 +02:00
|
|
|
*/
|
|
|
|
public String getIslandLevelString(@NonNull World world, @Nullable UUID targetPlayer) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
return formatLevel(getIslandLevel(world, targetPlayer));
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-07-26 23:40:17 +02:00
|
|
|
* Load a level data for the island from the cache or database.
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
2020-07-26 23:40:17 +02:00
|
|
|
* @param island - UUID of island
|
|
|
|
* @return IslandLevels object
|
2020-06-22 02:54:51 +02:00
|
|
|
*/
|
2020-07-26 23:40:17 +02:00
|
|
|
@NonNull
|
|
|
|
public IslandLevels getLevelsData(@NonNull Island island) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
String id = island.getUniqueId();
|
|
|
|
if (levelsCache.containsKey(id)) {
|
|
|
|
return levelsCache.get(id);
|
|
|
|
}
|
|
|
|
// Get from database if not in cache
|
|
|
|
if (handler.objectExists(id)) {
|
|
|
|
IslandLevels ld = handler.loadObject(id);
|
|
|
|
if (ld != null) {
|
|
|
|
levelsCache.put(id, ld);
|
|
|
|
} else {
|
|
|
|
handler.deleteID(id);
|
|
|
|
levelsCache.put(id, new IslandLevels(id));
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
levelsCache.put(id, new IslandLevels(id));
|
|
|
|
}
|
|
|
|
// Return cached value
|
|
|
|
return levelsCache.get(id);
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* Get the number of points required until the next level since the last level
|
|
|
|
* calc
|
|
|
|
*
|
|
|
|
* @param world - world where the island is
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param targetPlayer - target player UUID
|
|
|
|
* @return string with the number required or blank if the player is unknown
|
|
|
|
*/
|
|
|
|
public String getPointsToNextString(@NonNull World world, @Nullable UUID targetPlayer) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
if (targetPlayer == null)
|
|
|
|
return "";
|
|
|
|
Island island = addon.getIslands().getIsland(world, targetPlayer);
|
|
|
|
return island == null ? "" : String.valueOf(getLevelsData(island).getPointsToNextLevel());
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* Get the weighted top ten for this world. Weighting is based on number of
|
|
|
|
* players per team.
|
|
|
|
*
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param world - world requested
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @param size - size of the top ten
|
|
|
|
* @return sorted top ten map. The key is the island unique ID
|
2020-06-22 02:54:51 +02:00
|
|
|
*/
|
2020-06-27 00:44:03 +02:00
|
|
|
@NonNull
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
public Map<Island, Long> getWeightedTopTen(@NonNull World world, int size) {
|
|
|
|
createAndCleanRankings(world);
|
|
|
|
Map<Island, Long> weightedTopTen = topTenLists.get(world).getTopTen().entrySet().stream()
|
|
|
|
.map(en -> addon.getIslands().getIslandById(en.getKey()).map(island -> {
|
|
|
|
|
|
|
|
long value = (long) (en.getValue() / (double) Math.max(1, island.getMemberSet().size())); // Calculate
|
|
|
|
// weighted
|
|
|
|
// value
|
|
|
|
return new AbstractMap.SimpleEntry<>(island, value);
|
|
|
|
}).orElse(null)) // Handle islands that do not exist according to this ID - old deleted ones
|
|
|
|
.filter(Objects::nonNull) // Filter out null entries
|
|
|
|
.filter(en -> en.getValue() > 0) // Filter out entries with non-positive values
|
|
|
|
.sorted(Collections.reverseOrder(Map.Entry.comparingByValue())) // Sort in descending order of values
|
|
|
|
.limit(size) // Limit to the top 'size' entries
|
|
|
|
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, // In case of key
|
|
|
|
// collision, choose
|
|
|
|
// the first one
|
|
|
|
LinkedHashMap::new // Preserves the order of entries
|
|
|
|
));
|
|
|
|
|
|
|
|
// Return the unmodifiable map
|
|
|
|
return Collections.unmodifiableMap(weightedTopTen);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the top ten for this world. Returns offline players or players with the
|
|
|
|
* intopten permission.
|
|
|
|
*
|
|
|
|
* @param world - world requested
|
|
|
|
* @param size - size of the top ten
|
|
|
|
* @return sorted top ten map. The key is the island unique ID
|
|
|
|
*/
|
|
|
|
@NonNull
|
|
|
|
public Map<String, Long> getTopTen(@NonNull World world, int size) {
|
|
|
|
createAndCleanRankings(world);
|
|
|
|
// Return the sorted map
|
|
|
|
return Collections.unmodifiableMap(topTenLists.get(world).getTopTen().entrySet().stream()
|
|
|
|
.filter(l -> l.getValue() > 0).sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))
|
|
|
|
.limit(size)
|
|
|
|
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new)));
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
2021-05-02 16:54:28 +02:00
|
|
|
|
2021-02-28 18:33:11 +01:00
|
|
|
void createAndCleanRankings(@NonNull World world) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
topTenLists.computeIfAbsent(world, TopTenData::new);
|
|
|
|
// Remove player from top ten if they are online and do not have the perm
|
|
|
|
topTenLists.get(world).getTopTen().keySet().removeIf(u -> addon.getIslands().getIslandById(u)
|
|
|
|
.filter(i -> i.getOwner() == null || !hasTopTenPerm(world, i.getOwner())).isPresent());
|
2021-02-28 18:33:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the topTenLists
|
|
|
|
*/
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
public Map<World, TopTenData> getTopTenLists() {
|
|
|
|
return topTenLists;
|
2021-02-28 18:33:11 +01:00
|
|
|
}
|
2020-06-22 02:54:51 +02:00
|
|
|
|
2021-02-28 18:33:11 +01:00
|
|
|
/**
|
|
|
|
* Get the rank of the player in the rankings
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
2021-02-28 18:33:11 +01:00
|
|
|
* @param world - world
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @param uuid - player UUID
|
2021-02-28 18:33:11 +01:00
|
|
|
* @return rank placing - note - placing of 1 means top ranked
|
|
|
|
*/
|
|
|
|
public int getRank(@NonNull World world, UUID uuid) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
createAndCleanRankings(world);
|
|
|
|
Stream<Entry<String, Long>> stream = topTenLists.get(world).getTopTen().entrySet().stream()
|
|
|
|
.filter(l -> l.getValue() > 0).sorted(Collections.reverseOrder(Map.Entry.comparingByValue()));
|
|
|
|
// Get player's current island
|
|
|
|
Island island = addon.getIslands().getIsland(world, uuid);
|
|
|
|
String id = island == null ? null : island.getUniqueId();
|
|
|
|
return (int) (stream.takeWhile(x -> !x.getKey().equals(id)).map(Map.Entry::getKey).count() + 1);
|
2021-02-28 18:33:11 +01:00
|
|
|
}
|
2021-05-02 16:54:28 +02:00
|
|
|
|
2020-06-22 02:54:51 +02:00
|
|
|
/**
|
|
|
|
* Checks if player has the correct top ten perm to have their level saved
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param world
|
|
|
|
* @param targetPlayer
|
2020-07-03 03:19:26 +02:00
|
|
|
* @return true if player has the perm or the player is offline
|
2020-06-22 02:54:51 +02:00
|
|
|
*/
|
|
|
|
boolean hasTopTenPerm(@NonNull World world, @NonNull UUID targetPlayer) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
String permPrefix = addon.getPlugin().getIWM().getPermissionPrefix(world);
|
|
|
|
return Bukkit.getPlayer(targetPlayer) == null
|
|
|
|
|| Bukkit.getPlayer(targetPlayer).hasPermission(permPrefix + INTOPTEN);
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Loads all the top tens from the database
|
|
|
|
*/
|
Version 2.10.0 (#283)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
2023-04-16 01:44:33 +02:00
|
|
|
public void loadTopTens() {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
topTenLists.clear();
|
|
|
|
Bukkit.getScheduler().runTaskAsynchronously(addon.getPlugin(), () -> {
|
|
|
|
addon.log("Generating rankings");
|
|
|
|
handler.loadObjects().forEach(il -> {
|
|
|
|
if (il.getLevel() > 0) {
|
|
|
|
addon.getIslands().getIslandById(il.getUniqueId())
|
|
|
|
.ifPresent(i -> this.addToTopTen(i, il.getLevel()));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
topTenLists.keySet().forEach(w -> addon.log("Generated rankings for " + w.getName()));
|
|
|
|
});
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* Removes an island from a world's top ten
|
|
|
|
*
|
2020-06-22 02:54:51 +02:00
|
|
|
* @param world - world
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @param uuid - the island's uuid
|
2020-06-22 02:54:51 +02:00
|
|
|
*/
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
public void removeEntry(World world, String uuid) {
|
|
|
|
if (topTenLists.containsKey(world)) {
|
|
|
|
topTenLists.get(world).getTopTen().remove(uuid);
|
|
|
|
}
|
2020-06-22 02:54:51 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-07-26 23:40:17 +02:00
|
|
|
* Set an initial island level
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
2020-07-26 23:40:17 +02:00
|
|
|
* @param island - the island to set. Must have a non-null world
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @param lv - initial island level
|
2020-06-22 02:54:51 +02:00
|
|
|
*/
|
|
|
|
public void setInitialIslandLevel(@NonNull Island island, long lv) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
if (island.getWorld() == null)
|
|
|
|
return;
|
|
|
|
levelsCache.computeIfAbsent(island.getUniqueId(), IslandLevels::new).setInitialLevel(lv);
|
|
|
|
handler.saveObjectAsync(levelsCache.get(island.getUniqueId()));
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
2020-07-03 03:19:26 +02:00
|
|
|
/**
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* Set the island level for the owner of the island that targetPlayer is a
|
|
|
|
* member
|
|
|
|
*
|
|
|
|
* @param world - world
|
|
|
|
* @param island - island
|
|
|
|
* @param lv - level
|
2020-07-03 03:19:26 +02:00
|
|
|
*/
|
2020-06-22 02:54:51 +02:00
|
|
|
public void setIslandLevel(@NonNull World world, @NonNull UUID targetPlayer, long lv) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
// Get the island
|
|
|
|
Island island = addon.getIslands().getIsland(world, targetPlayer);
|
|
|
|
if (island != null) {
|
|
|
|
String id = island.getUniqueId();
|
|
|
|
IslandLevels il = levelsCache.computeIfAbsent(id, IslandLevels::new);
|
|
|
|
// Remove the initial level
|
|
|
|
if (addon.getSettings().isZeroNewIslandLevels()) {
|
|
|
|
il.setLevel(lv - il.getInitialLevel());
|
|
|
|
} else {
|
|
|
|
il.setLevel(lv);
|
|
|
|
}
|
|
|
|
handler.saveObjectAsync(levelsCache.get(id));
|
|
|
|
// Update TopTen
|
|
|
|
addToTopTen(island, levelsCache.get(id).getLevel());
|
|
|
|
}
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
2020-07-04 00:27:05 +02:00
|
|
|
/**
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* Set the island level for the owner of the island that targetPlayer is a
|
|
|
|
* member
|
|
|
|
*
|
2020-07-04 00:27:05 +02:00
|
|
|
* @param world - world
|
2020-07-05 03:13:02 +02:00
|
|
|
* @param owner - owner of the island
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
* @param r - results of the calculation
|
2020-07-04 00:27:05 +02:00
|
|
|
*/
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
private void setIslandResults(Island island, Results r) {
|
|
|
|
if (island == null)
|
|
|
|
return;
|
|
|
|
IslandLevels ld = levelsCache.computeIfAbsent(island.getUniqueId(), IslandLevels::new);
|
|
|
|
ld.setLevel(r.getLevel());
|
|
|
|
ld.setUwCount(Maps.asMap(r.getUwCount().elementSet(), elem -> r.getUwCount().count(elem)));
|
|
|
|
ld.setMdCount(Maps.asMap(r.getMdCount().elementSet(), elem -> r.getMdCount().count(elem)));
|
|
|
|
ld.setPointsToNextLevel(r.getPointsToNextLevel());
|
|
|
|
ld.setTotalPoints(r.getTotalPoints());
|
|
|
|
levelsCache.put(island.getUniqueId(), ld);
|
|
|
|
handler.saveObjectAsync(ld);
|
|
|
|
// Update TopTen
|
|
|
|
addToTopTen(island, ld.getLevel());
|
2020-07-04 00:27:05 +02:00
|
|
|
}
|
|
|
|
|
2020-07-26 23:40:17 +02:00
|
|
|
/**
|
|
|
|
* Removes island from cache when it is deleted
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
*
|
2020-07-26 23:40:17 +02:00
|
|
|
* @param uniqueId - id of island
|
|
|
|
*/
|
|
|
|
public void deleteIsland(String uniqueId) {
|
Release 2.12.0 (#301)
* Version 2.7.1
* 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.
* Version 2.8.0
* 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
* Update to BentoBox API 1.18
* Open up modules for testing access.
* Back support for BentoBox 1.16.5.
* Version 2.8.1
* 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
* add Vietnamese (#240)
* Raw island level placeholder (#241)
* Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
* Version 2.9.0
* Chinese Translation (#249)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
* Translate id.yml via GitLocalize (#250)
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
* Translate fr.yml via GitLocalize (#251)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Korean translation (#252)
* Translate ko.yml via GitLocalize
* Translate ko.yml via GitLocalize
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
* German Translation (#253)
* Translate de.yml via GitLocalize
* Update de.yml
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Translate hu.yml via GitLocalize (#254)
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
* Version 2.9.1
* Attempt to handle WildStacker spawners
* Fix error lon loading id locale
* Avoid async chunk snapshotting.
Fixes https://github.com/BentoBoxWorld/Level/issues/256
* Update to BentoBox API 1.20.
Replace plugin.yml with spigot-annotations.
Implement customizable TopLevelPanel.
* Fixes some small issues with TopLevelPanel
Add Utils class that contains some useful things.
* Implement customizable DetailsPanel.
Remove old DetailsGUITab due to new implementation.
* Fix failing test.
* Remove blank file
* Added repo for maven plugin snapshots
* 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
* 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
* Update es.yml (#261)
* 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
* Support for AdvancedChests was updated. (#266)
* 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.
* 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
* Translate pl.yml via GitLocalize (#269)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
* Translate fr.yml via GitLocalize (#272)
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
* Update to Java 17
* Update Github workflow to Java 17
* Adds %Level_[gamemode]_island_level_max% placeholder
This records the lifetime maximum level the island has ever had.
Addresses #271
* Only shows Members or higher in the top members placeholder
Fixes #267
* Add natural log to level-calc formula parsing
Relates to #274
* feat: add island total points + placeholder (#264)
* feat: add island total points + placeholder
* Update IslandLevels.java
* Fix JavaDoc
* Translate zh-CN.yml via GitLocalize (#276)
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate nl.yml via GitLocalize (#277)
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM
* Add shulker to in chest count (#275)
* Sonar Cloud code smell clean up (#278)
* 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.
* Remove dependency
* Add UltimateStacker hook for stacked blocks (#281)
* Create plugin.yml (#282)
* Create plugin.yml
The annotations do not provide the option to define the version dynamically from maven. This should fix that.
* Remove Spigot Plugin Annotations
* Remove plugin-annotation repo
* Updated dependencies
* Version 2.10.1
* Add blocks that should be zero by default as they are available
on the ocean floor. https://github.com/BentoBoxWorld/Level/issues/284
* Chinese (#288)
* Translate zh-CN.yml via GitLocalize
* Translate zh-CN.yml via GitLocalize
---------
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
* Translate id.yml via GitLocalize (#287)
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
* French (#286)
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
* Translate fr.yml via GitLocalize
---------
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
* Spanish (#285)
* Translate es.yml via GitLocalize
* Translate es.yml via GitLocalize
---------
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
* Version 2.11.0
* Update Github Build script
* Added distribution required for Github Action
* Update Jacoco
* Update pom.xml
* Add config option to disable plugin hooks (#291)
* Update UltimateStacker dependency
* Add config option to disable plugin hooks
* Use 2.0.0 BentoBox API
* Version 2.12.0
* Adds an admin stats command. See #293
* Update tests
* Update to BentoBox 2.0.0 API
* Added test for Stats command
* Try lower version of jacoco
* 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
* 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.
* Translate uk.yml via GitLocalize (#297)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Move to 1.20.4
Refactored the calculator code for clarity.
Added Jacoco line to prvent issues with the bigger Material class.
* Added comments on the panel templates.
* Add protection around unknown blockconfig.yml entries. GRASS>SHORT_GRASS
* Uses latest Visit API to avoid chat spam. Fixes #299 (#300)
* Added test class for EquationEvaluator
* Fix merge error
---------
Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
Co-authored-by: Rubén <44579213+Rubenicos@users.noreply.github.com>
Co-authored-by: Pierre Dedrie <Pirgosth74@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: 织梦 <493733933@qq.com>
Co-authored-by: Nathan Adhitya <nathanadhitya@outlook.com>
Co-authored-by: organizatsiya <organizatsiya.wildguns@gmail.com>
Co-authored-by: chickiyeah <ruddls030@naver.com>
Co-authored-by: Rikamo045 <rik.amos.krajinovic@gmail.com>
Co-authored-by: András Marczinkó <marczinkoandris@gmail.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: KrazyxWolf <68208993+KrazyxWolf@users.noreply.github.com>
Co-authored-by: DeadSilenceIV <Barreto-h2@hotmail.com>
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: evlad <emmanuelvlad@gmail.com>
Co-authored-by: dawnTak <lanlongxiaode@outlook.com>
Co-authored-by: DevSolaris <solaris.dev.2002@gmail.com>
Co-authored-by: DevSolaris <105156235+DevSolaris@users.noreply.github.com>
Co-authored-by: ceze88 <dev.ceze@gmail.com>
Co-authored-by: Jeansou <bettertreebot@gmail.com>
Co-authored-by: Dusty <siapa-yg-mau-diblokir.kfrxp@simplelogin.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
Co-authored-by: ChrissTM03 <criisbr193@gmail.com>
Co-authored-by: Espan <zcraftyt@gmail.com>
Co-authored-by: PapiCapi <49530141+PapiCapi@users.noreply.github.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
2024-01-14 04:50:15 +01:00
|
|
|
levelsCache.remove(uniqueId);
|
|
|
|
handler.deleteID(uniqueId);
|
2020-06-22 02:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|