Commit Graph

65 Commits

Author SHA1 Message Date
tastybento
e1dc26fa86 Saves level data when a player does level
https://github.com/BentoBoxWorld/Level/issues/38
2019-02-03 09:36:26 -08:00
tastybento
97fb434244 Added top ten placeholders 2019-02-02 21:43:27 -08:00
tastybento
d4e1bbf0bd Fixes exploit where players could get duplicate top ten entries
https://github.com/BentoBoxWorld/Level/issues/22

Requires 1.3.0 or later BentoBox because it listens for new events fired
by that version.
2019-02-02 20:44:15 -08:00
tastybento
708997237c Without debug code
https://github.com/BentoBoxWorld/Level/issues/27
2019-02-02 12:33:16 -08:00
tastybento
8eaca607d8 Added level placeholder
This requires BentoBox 1.3.0

This needs testing with plugins that use placeholders.
2019-02-02 12:31:14 -08:00
tastybento
05ebb4c283 Uses new GameMode API
See https://github.com/BentoBoxWorld/BentoBox/pull/472
2019-01-15 19:35:08 -08:00
tastybento
d0305e3d7e Updated to 1.1-SNAPSHOT
Removed deprecated command classes.
2019-01-13 18:51:46 -08:00
tastybento
8510f413f5 Added defensive code around null UUIDs
Relates to:
https://github.com/BentoBoxWorld/BentoBox/issues/447
2019-01-07 07:29:03 -08:00
tastybento
28e6ea4377 Version up.
Cleaned up JavaDoc
2019-01-03 10:27:20 -08:00
tastybento
e8f1f07104
Merge pull request #32 from BONNe/cooldown
Implement CoolDown for calling level method.
2019-01-03 09:52:25 -08:00
BONNe1704
de2052acb4 Revert changes that resets user death count. 2019-01-02 15:03:22 +02:00
BONNe1704
c2778960b3 Merge branch 'develop' of https://github.com/BentoBoxWorld/Level into develop 2019-01-02 15:02:47 +02:00
Florian CUNY
0894c2e248 Revert "Added death resetting."
This reverts commit 1121bbcbb5.
2019-01-02 13:22:44 +01:00
BONNe1704
23fd210fd3 Implement CoolDown for calling level method. 2019-01-02 12:15:41 +02:00
BONNe1704
e7cc3c7c50 Implement sumTeamDeaths, maxDeaths and deathPenalty.
Improved calculating death penalty. Death count now checks if it must include teamDeaths.
maxDeaths now is working, as deathHandicap will be set to minimal value from it and current deathCount.
Change level and pointsToNextLevel calculation. Now it will remove deathCount * deathPenalty points from rawBlockCount and use new value to calculate current level and points till next one.
2019-01-02 11:19:29 +02:00
BONNe1704
4a73534570 Implement TeamJoinDeathReset.
Add TeamJoinEvent listener that checks if TeamJoinDeathReset is enabled and resets player death count.
2019-01-02 11:11:31 +02:00
tastybento
1121bbcbb5 Added death resetting.
Untested...

https://github.com/BentoBoxWorld/Level/issues/30
2019-01-01 22:59:00 -08:00
Florian CUNY
b7aec5b0eb Added LevelRequestHandler (island-level) 2018-12-23 21:20:15 +01:00
Florian CUNY
456e278d11 Fixed admin topten display 2018-12-23 21:05:55 +01:00
Florian CUNY
8703e7c262 Moved and renamed commands (deprecated old ones) 2018-12-23 21:03:08 +01:00
Florian CUNY
f270402fca Made the island top command "only player" 2018-12-23 20:48:03 +01:00
Florian CUNY
dc2cc515f8
Merge pull request #29 from BONNe/master
Fix issue #24
2018-12-23 20:45:28 +01:00
BONNe
4f384989bb Fix issue when /bsbadmin top returns weird string. Relates to issue #24.
In lang file was missing admin.topten variable.
2018-12-18 01:17:24 +02:00
BONNe
c40c9c4044 Fix crash reported in #24.
GUI will be opened only if caller is player.
2018-12-18 00:41:56 +02:00
tastybento
71de55b3bd Lists related event in keyValue list.
https://github.com/BentoBoxWorld/bentobox/issues/352

Rather than overriding the existing getEventName() method for Events, I
decided to keep it as a key-value reference.
2018-12-08 23:20:57 -08:00
tastybento
67fa9e31e4 Updated to latest BentoBox version and API 2018-12-01 19:34:08 -08:00
tastybento
5eea419746 Uses a trial generic event to expose add-on data as K,V pairs. 2018-11-25 22:29:45 -08:00
Florian CUNY
70d29e62ae The Flattening & renamed the addon "Level" instead of "BentoBox-Level" 2018-10-31 14:09:56 +01:00
tastybento
b3ba8c935e Makes the BSkyBlock and AcidIsland commands configurable.
https://github.com/BentoBoxWorld/addon-acidisland/pull/4
2018-09-16 15:44:48 -07:00
tastybento
afbe7dddde Merge branch 'develop' of
https://github.com/BentoBoxWorld/addon-level.git into develop
2018-08-31 11:03:47 +09:00
tastybento
c2320aee3a Refactoring code 2018-08-31 10:59:10 +09:00
tastybento
77c77f1482 Fixed sea height bug. Sea height was not being taken from world settings 2018-08-26 08:37:09 -07:00
tastybento
f686060e54 Removed code smells 2018-08-26 08:21:41 -07:00
tastybento
85c28f8a70 Removed code smells 2018-08-25 21:15:45 -07:00
tastybento
4c7a6a710c Fixes points to next level bug.
https://github.com/BentoBoxWorld/addon-level/issues/17
2018-08-23 12:05:28 -07:00
tastybento
c8e753af16 Added softdepend to addon.yml. Removed 1 tick delays in onEnable() 2018-08-17 21:59:36 -07:00
tastybento
2f268ac172 Removed deprecation. 2018-08-15 23:58:58 -07:00
tastybento
60ec40830c Updated to FC-0.9
Moved folders to match Maven layout.

Added LevelPresenterTest class.
2018-08-09 06:34:35 +09:00
tastybento
d70a4bf9b7 Using Config and Database API naming 2018-08-06 07:43:17 -07:00
tastybento
c3f8879a8a Updated to renamed API 2018-08-05 20:38:50 -07:00
tastybento
b764fcb5fa Fixed bug where levels were not being saved correctly.
Added a join/leave listener to pre-load players to the cache and remove
and save them when they logout.
2018-08-04 15:55:21 -07:00
tastybento
9261001823 Renamed to Bentobox 2018-08-03 23:36:04 -07:00
tastybento
7027f707fd Update to new package name 2018-08-01 09:49:43 -07:00
tastybento
1b38a2c38a Update to new API 2018-07-29 17:22:23 -07:00
tastybento
e559c67dd3 BentoBox version 2018-07-28 21:42:29 -07:00
tastybento
5137efb7f0 Rewrote island calculations to be cleaner. 2018-07-28 13:38:04 -07:00
tastybento
181cb25357 Updated to latest CompositeCommand API
Updated POM to use latest BSB version.
2018-07-18 22:58:43 -07:00
tastybento
19d00712e5 Fixed permissions 2018-06-02 19:20:18 -07:00
tastybento
afce568a24 Fixed bug with saving to flat file.
Must remember to include blank constructor so Beans can create the
object!
2018-05-29 14:57:26 -07:00
tastybento
ac9ac426d9 Updated database object 2018-05-29 08:16:08 -07:00