Commit Graph

936 Commits

Author SHA1 Message Date
tastybento
342387cf09 Adjusted to run in 1.13-pre7
Removed references to STATIONARY_WATER as this does not exist in 1.13.
2018-07-23 23:14:51 -07:00
tastybento
b40023bcf9 Added GeoLimit for mobs - world setting.
Adds a world menu for preventing mobs from exiting an island.
Defaults are for flying mobs.

Adds an event that is called when the plugin loads.

Test classes are still to be developed.
2018-07-22 16:17:34 -07:00
tastybento
944ab36488 Finished ItemFrameListener and test. 2018-07-21 21:48:22 -07:00
tastybento
984de1cd07 Added ItemFrame protection from mobs flag and test class. 2018-07-21 21:10:07 -07:00
tastybento
71e79db0a9 Added Enderman protection flags and tests. 2018-07-21 16:48:53 -07:00
tastybento
1251ea60d1 Added chest damage listener test class. 2018-07-21 14:18:35 -07:00
tastybento
b72d1853b5 Added Range command tests and put in some locale messages. 2018-07-21 14:06:40 -07:00
Florian CUNY
f10c2da7d3 Code smells ; minor code format issues 2018-07-20 14:37:11 +02:00
tastybento
f8da453a29 Added chest damage listener
Also fixed a bug with creeper listener to only apply to island worlds.

Made TNT flag an island settings. Woohoo!
2018-07-19 19:55:32 -07:00
tastybento
c61b87628f Added view distance limit to range particles 2018-07-19 19:43:13 -07:00
tastybento
d4305efabe Removed place blocks debug 2018-07-19 19:28:50 -07:00
tastybento
acaf126978 Removed unused imports 2018-07-19 19:12:19 -07:00
Florian CUNY
ada19a03f6 Version FC-0.74 2018-07-19 21:40:00 +02:00
Florian CUNY
7f9da04067 Added localization texts for /bsb range set and reset. 2018-07-19 21:35:34 +02:00
Florian CUNY
e9d39148ef Removed useless Island#getTileEntityCount(Material, World) 2018-07-19 21:18:09 +02:00
Florian CUNY
e15ed63899 Added /bsb range reset <player> 2018-07-19 13:31:47 +02:00
Florian CUNY
a5a1ccb7e5 Fixed bug with protection range (in Island)
minX, minZ, minProtectedX and minProtectedZ are no longer variables : to get them, we have to use the related methods. As they get recalculated at each call, it ensures they follow the changes (especially with the protectionRange)
2018-07-19 12:58:59 +02:00
Florian CUNY
09c0eb846e /bsb range set : allow to set a value which is = to the max range 2018-07-19 12:55:47 +02:00
Florian CUNY
4df9f89e3e Fixed /bsb info not displaying the actual protectionRange 2018-07-19 12:45:02 +02:00
Florian CUNY
d75cc70083 Documented #getRange() and #setRange(int) in Island 2018-07-19 12:23:22 +02:00
Florian CUNY
b37df7ef7c Fixed some code smells in AdminGetRankCommand 2018-07-19 12:22:36 +02:00
Florian CUNY
90be5e5de6 Added /bsb range set <player> <range> 2018-07-19 12:22:01 +02:00
Florian CUNY
04db135f60 Added #getUser(UUID) in PlayersManager
I didn't find a real use right now, but that might be helpful for an addon etc
2018-07-19 12:21:31 +02:00
Florian CUNY
c693c32f30 /bsb range display : now 30 ticks instead of 20
Again, it is mainly to make it looks better and avoid having too much barrier particles when moving
2018-07-19 12:20:40 +02:00
Florian CUNY
918793fa43 /bsb range display : each 20 ticks instead of 15
BARRIER particles are lasting longer than the other ones. In order to avoid huge load of barrier icons (which becomes quite laggy very fast) in case the player is moving, I decided to slightly increase the amount of time between each zone-drawing.
2018-07-19 10:37:49 +02:00
Florian CUNY
62c5f20244 Slightly updated en-US locale
Improved layouts and multi-lines strings.
Made the '/bsb range show' hint more detailed.
2018-07-19 10:35:32 +02:00
tastybento
3b4aa2dd48 Fixed range display command to be just player only 2018-07-18 23:04:32 -07:00
tastybento
d093925938 Added text strings for localization. 2018-07-18 22:42:50 -07:00
tastybento
3210c7873b Fixes bug where boats could not be broken by the island owner 2018-07-18 22:28:03 -07:00
tastybento
0b77225f06 Fixed bug where Ops could not see admin help by default. 2018-07-18 21:28:15 -07:00
Florian CUNY
9920e31abb Added (finished) /bsb range <display/show/hide> 2018-07-18 22:28:50 +02:00
Florian CUNY
89b4b80208 Fixes an ArrayOutOfBoundsException when command was at "top" level 2018-07-18 15:49:05 +02:00
Florian CUNY
f8a7c1af48 Started /bsb range display 2018-07-18 15:37:20 +02:00
Florian CUNY
2e26c6a20c BREAKING CHANGE: now BSBCommand#execute(User, String, List<String>) !!! 2018-07-18 15:36:57 +02:00
Florian CUNY
0f61049502 Moved commands/island/teams to commands/island/team 2018-07-18 14:45:14 +02:00
Florian CUNY
fd36b0a9eb Renamed commands/admin/teams to commands/admin/team 2018-07-18 14:13:43 +02:00
Florian CUNY
66b33addfb Added convenience methods in CompositeCommand to ignore the Help subcommand if it exists
It might look useless at first, but it can have practical uses such as placeholders, display and so on.
It is also needed for my in-project new help display.
2018-07-18 13:46:40 +02:00
tastybento
d8f783999b Added creeper listener. Fixed bugs with listener reg. 2018-07-17 22:38:47 -07:00
tastybento
4f5b6a25b6 Renamed method to isWaterUnsafe to sound better. 2018-07-17 18:50:42 -07:00
tastybento
720e6bbe6b Added WaterIsNotSafe setting to WorldSettings
This flag is used to indicate whether being waste-deep in water is a
safe home location or not. On SkyBlock is it fine, on AcidIsland it is
not. So that's why this definition is required.

Removed unused @deprecation header. I assume switching to Spigot API
made these superfluous.
2018-07-17 18:48:50 -07:00
tastybento
b1a131fa84 Delay registering flag listeners until plugin is loaded.
Reworked test classes to avoid running the Bukkit server.
2018-07-17 18:32:28 -07:00
tastybento
d9c60eccb6 Merge branch 'develop' of https://github.com/tastybento/bskyblock.git into develop 2018-07-17 07:54:32 -07:00
tastybento
ee440b4f0d Fix for null entities.
https://github.com/tastybento/bskyblock/issues/206
2018-07-17 07:54:22 -07:00
Florian CUNY
ebd0f82824 Switched from Bukkit API to Spigot API as it has more useful features 2018-07-17 15:16:07 +02:00
Florian CUNY
fb7c534c79 Removed useless soft-dependencies from plugin.yml 2018-07-17 15:15:23 +02:00
tastybento
5572875257 Added global TNT on/off flag
Protects against visitors priming TNT too.
Test class is just "happy path".

Fixed bugs with other flags around fire extinguish.
2018-07-16 19:00:12 -07:00
tastybento
1f682092db Merge remote-tracking branch 'origin/master' into develop 2018-07-14 15:25:33 -07:00
tastybento
6920ec1d05
Added database question 2018-07-14 15:24:59 -07:00
tastybento
65b656b95c Added a bit more info on super-flat chunk regen 2018-07-14 12:36:37 -07:00
tastybento
dedaebc2b6 Added setting in config for world difficulty.
Added ability to add comments to the top of the config file.
2018-07-14 12:29:59 -07:00