Commit Graph

1589 Commits

Author SHA1 Message Date
Florian CUNY
f41359ce4d Added ISLAND_MEMBERS_COUNT, ISLAND_VISITORS_COUNT, ISLAND_BANS_COUNT
#621
2019-04-11 10:53:00 +02:00
Florian CUNY
b0d4604c63 Renamed GameModePlaceholders to GameModePlaceholder
(enum names should be singular)
2019-04-11 10:47:25 +02:00
Florian CUNY
1d119ddea1 Removed "warp not safe" message, replaced with the (renamed) "no-safe-location-found" 2019-04-11 10:37:14 +02:00
Florian CUNY
a25ab326c3 Added OFFLINE_GROWTH flag localization (en-US)
Damn, how could I have missed that + how could nobody have noticed already ? xD
Thanks Liam from Discord!
2019-04-10 21:52:19 +02:00
tastybento
f5ad5aa2c9 Improves API and JavaDocs for getMembers (#628)
* Improves API and JavaDocs for getMembers

https://github.com/BentoBoxWorld/BentoBox/issues/627

* Fixed indentation in Island
2019-04-10 15:40:54 +02:00
Florian CUNY
aeb0e7d4fa Added default white color to gamemode addons' icons name 2019-04-10 15:22:23 +02:00
Florian CUNY
c687d18385 Introducing the BentoBox Management Panel (/bbox manage)
As it mostly relies on other panels yet-to-be-implemented, it doesn't do much. But it was fun to do!
2019-04-10 14:37:14 +02:00
Florian CUNY
2c371f4091 Added icon for addons
It will be used to represent the addon in menus
Default is PAPER
2019-04-10 13:16:47 +02:00
Florian CUNY
81cca6adc8 Added %[gamemode]_world_islands% and %[gamemode]_rank% placeholders
#621
2019-04-08 20:47:45 +02:00
Florian CUNY
246a6c30d0 Improved documentation of Island#getMembers() and Island#getMemberSet() 2019-04-08 20:38:50 +02:00
Florian CUNY
af2f600621 Fixed tests in IslandResetCommandTest 2019-04-08 11:34:51 +02:00
Florian CUNY
79941b5e63 Added %[gamemode]_resets_left% placeholder
#621
2019-04-08 10:51:00 +02:00
Florian CUNY
d1a3a8285f Added PlayersManager#getResetsLeft(World, UUID) 2019-04-08 10:49:22 +02:00
Florian CUNY
38875829b9 Ignored PlaceholdersManagerTest tests - could not fix them 2019-04-08 10:34:25 +02:00
Florian CUNY
166f7b97d6 Added %[gamemode]_resets% placeholder
#621
2019-04-08 10:27:03 +02:00
Florian CUNY
5177e2be09 Added nullable annotation on Hook#getPlugin() 2019-04-07 21:37:23 +02:00
Florian CUNY
5dd7796be4 Deprecated GameModePlaceholderManager
GameModePlaceholderManager#registerGameModePlaceholders(...) is now handled by PlaceholdersManager#registerDefaultPlaceholders(...).
2019-04-07 20:59:21 +02:00
Florian CUNY
9e12f06599 Improved default placeholders registration
To keep it simple: `%bentobox_bskyblock-island-distance%` is now `%bskyblock_island_distance%`.
I tried to keep some legacy support though.
2019-04-07 11:18:18 +02:00
Florian CUNY
749b88669c Added nullability annotations to some Island's fields 2019-04-07 10:43:24 +02:00
Florian CUNY
962bc50aaa Added nullable annotation to Island#getCenter 2019-04-07 10:41:32 +02:00
Florian CUNY
38f088bb35 Added has-island placeholder
#621
2019-04-07 10:16:59 +02:00
Florian CUNY
d283de9440 Added island-center placeholder
#621
2019-04-07 10:15:23 +02:00
Florian CUNY
e66f3842b7 Fixed GameModePlaceholderManager tests 2019-04-07 10:13:34 +02:00
Florian CUNY
79ca7512d1 Made the gamemode placeholders no longer return an empty string if player doesn't have an island 2019-04-07 10:02:55 +02:00
Florian CUNY
e8ec7b24b4 Added nullability annotations to both PlaceholderReplacers' #onReplace(...) method 2019-04-07 10:02:10 +02:00
Florian CUNY
b40f07f763 Added island center related placeholders
#621

* island-center-x
* island-center-y
* island-center-z
2019-04-07 09:46:02 +02:00
Florian CUNY
0bcbdf245a Removed useless code and erroneous documentation in GameModePlaceholderManager 2019-04-07 09:44:58 +02:00
Florian CUNY
5a5e0dafc0 Removed deprecated methods in PlaceholderAPIHook 2019-04-07 09:38:30 +02:00
Florian CUNY
00546c2cb6 Fixed indentation in GameModePlaceholderManager 2019-04-07 09:33:50 +02:00
Florian CUNY
01e1147c7f Improved handling of gamemode default placeholders 2019-04-06 21:09:31 +02:00
Florian CUNY
4d8bb71354 Release 1.4.0 2019-03-28 20:40:37 +01:00
Rem
8581522475 Added Akarin and Glowstone in server compatibility check (#620) 2019-03-28 20:22:52 +01:00
Florian CUNY
1c2d3bed41 Fixed missing import 2019-03-28 20:11:55 +01:00
Florian CUNY
b72b5830a8 Removed no longer needed tests (due to spigot's nullability annotations) 2019-03-28 20:08:54 +01:00
Florian CUNY
a54412e266 Fixed typo from 0d6f872420 2019-03-28 20:04:15 +01:00
tastybento
0d6f872420 Removes disablement of plugin for incompatible servers.
https://github.com/BentoBoxWorld/BentoBox/issues/619
2019-03-26 08:14:09 -07:00
Florian CUNY
70749b0d16 Fixed another bunch of code smells 2019-03-24 15:51:45 +01:00
Florian CUNY
5073d9cf5c Fixed code smells 2019-03-24 15:47:25 +01:00
tastybento
2912ae18d2 Auto add default placeholders for GameModeAddons (#616)
https://github.com/BentoBoxWorld/BentoBox/issues/322
2019-03-24 15:30:58 +01:00
Florian CUNY
1eadddee47 Made addons opt-in by default to the addons metrics 2019-03-24 10:14:27 +01:00
tastybento
7a7ca42383 Refactored toPanelItem to make it easier to understand 2019-03-23 18:59:30 -07:00
tastybento
af25bba60c Fix code smells. 2019-03-23 18:40:30 -07:00
tastybento
1f341f4929 Remove code smells due to nonNull Spigot settings
Let's see if the nonNull's are really true!
2019-03-23 16:34:04 -07:00
tastybento
23491d0c4a
Flag visibility (#617)
* Saves world settings to config.yml when they are changed mid-game.

* Fixes and adds to tests

* WIP: Added visibility settings for flags.

Tests still need to be fixed and requires saving to config.yml.

* Fixes tests

* Completed changes.

* Renames method to be hidden flags instead of visible settings

GameModeAddons will need to adjust WorldSettings API based classes.
2019-03-23 15:38:06 -07:00
tastybento
cab584d13d Saves world settings to config.yml when they are changed mid-game. (#615)
Addresses https://github.com/BentoBoxWorld/BentoBox/issues/614
2019-03-23 21:54:45 +01:00
tastybento
2ba0000a8f
Javadoc typo fix 2019-03-21 21:34:17 -07:00
tastybento
7990378355 Adds island expel command.
Requires GameModeAddons to use it.

https://github.com/BentoBoxWorld/BentoBox/issues/524
2019-03-21 20:41:30 -07:00
tastybento
99e9ad6ac8 Makes podzol yield podzol when broken if coarse dirt tilling is denied
https://github.com/BentoBoxWorld/BentoBox/issues/613
2019-03-20 23:38:02 -07:00
tastybento
68a52c71bf Prevents dragon eggs from teleporting outside of protection zone
https://github.com/BentoBoxWorld/BentoBox/issues/558
2019-03-20 22:46:13 -07:00
tastybento
05e542442e Adds an admin schem list command and test class
Lists available schems for game mode

https://github.com/BentoBoxWorld/BentoBox/issues/563
2019-03-20 22:33:30 -07:00