tastybento
bc1a73975e
Make flag explicitly set to false for test.
2018-07-29 13:58:12 -07:00
tastybento
268a301a47
Switch to BentoBox
2018-07-29 13:21:46 -07:00
tastybento
da04246a50
Removed acid-related events.
2018-07-28 13:39:18 -07:00
Florian CUNY
96c68957c5
Added a better exception handling when loading locales
2018-07-28 10:15:36 +02:00
tastybento
9c41ceb5f2
Added clear resets and clear reset all admin commands.
...
Clear reset all uses a timestamp stored in config.yml. If a player logs
in and the last time they logged in was before that timestamp, then
their resets are cleared. Note that as opposed to ASkyBlock, the player
object stores the number of resets done for a world and not the number
of resets left. This is a better design because it means that admins can
change the max number of resets and every player file does not have to
be adjusted.
Location of commit (30,000ft above Nevada desert, just coming into Las
Vegas).
2018-07-25 09:47:57 -07:00
tastybento
541ee35256
WIP - clear reset all command
2018-07-25 07:04:40 -07:00
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
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
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
ee440b4f0d
Fix for null entities.
...
https://github.com/tastybento/bskyblock/issues/206
2018-07-17 07:54:22 -07: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
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
tastybento
ec0a6bdd73
Fixed issue with dots in map keys for YAML saving
...
YAML cannot handle dots in keys, so they need to be converted to
something else. I chose :dot:. This issue occurred because location
coordinates were saved with .'s in them. Actually, there is no
real value in saving such accurate locations, so in addition to
keeping the dot escape system (just in case), I changed locations
to just save as ints and then when they are loaded, x and z have
0.5D added to them to center the location. This should be
sufficient accuracy for any location storage and it also reduces
the file size a lot.
2018-07-14 11:14:51 -07:00
tastybento
2b024d035b
Removed unused imports
2018-07-14 09:14:42 -07:00
tastybento
b431b9a092
Added lock and ban bypass via Op or perms.
...
https://github.com/tastybento/bskyblock/issues/201
2018-07-13 17:27:03 -07:00
tastybento
26200ae951
Fixed issues with self-inflicted damage.
...
https://github.com/tastybento/bskyblock/issues/203
2018-07-13 17:02:57 -07:00
tastybento
4003f839ed
Added Island Go test.
...
https://github.com/tastybento/bskyblock/issues/205
2018-07-13 16:39:02 -07:00
Florian CUNY
ac4611e66f
Minor code smells and code format fixes
2018-07-14 00:55:00 +02:00
Florian CUNY
bfe059f191
Fixes "Unknown command" when using uppercase characters in commands
...
Fixes #204 .
2018-07-14 00:54:37 +02:00
Florian CUNY
5ec5a59dd4
Minor spacing/typo in AbstractDatabaseHandler
2018-07-13 17:29:57 +02:00
Florian CUNY
712e335814
Renamed ClickListeners and made most of them setup "by default" to avoid boilerplate code
2018-07-13 17:29:17 +02:00
Florian CUNY
59e58e8592
Fixed invalid Flag ID in ANIMAL_SPAWN's clicklistener
2018-07-13 13:38:50 +02:00
tastybento
451756bc81
Added clean super-flat world setting and test
2018-07-12 21:25:07 -07:00
tastybento
c64ecf76af
Fixed admin command tab complete for Ops
...
Tab complete values are sorted now too.
2018-07-12 08:15:24 -07:00
tastybento
31455a033d
Fixed code smells and bugs, added flower pot protection
2018-07-11 22:49:20 -07:00
tastybento
60a0c486f3
Added Banned Visitor Commands and test
2018-07-11 21:55:00 -07:00
tastybento
94bc2355ac
Fixed test failures.
...
Fixed bug where spawn locs could be null.
2018-07-10 21:42:05 -07:00
tastybento
a663395a13
Players will teleport faster
...
Players will teleport to a spawn point if it is safe and marked.
https://github.com/tastybento/bskyblock/projects/3#card-11060603
2018-07-10 21:28:11 -07:00
tastybento
9021df099a
Added permissions to settings.
...
Added test for Inv Visitors.
Default perms need to be added to plugin.yml or addon.yml for settings.
2018-07-08 16:45:17 -07:00
tastybento
13a246df59
Fixed bugs
...
Admin tp was not tp'ing to correct world
Dragon Eggs were unprotected.
Changed name of BSB getWorld methods to be more specific so they are not
used accidentally to get the general world.
2018-07-07 15:52:47 -07:00
tastybento
6781beb3ca
Settings clean up.
2018-07-06 10:31:49 -07:00
tastybento
c1e6aa7350
Removed console spam around schem saving/loading
2018-07-06 10:22:40 -07:00
tastybento
4c4a72718e
Fixed world_name placeholder for settings titles.
2018-07-06 10:14:07 -07:00
tastybento
4963ea573c
Added offline redstone world flag
...
Removed constructor from LockAndBanListener. Due to loading order, some
manager objects are null. Flags load very early so must assume
everything is null.
2018-07-06 10:05:00 -07:00
tastybento
a60bcc8a22
Fixed settings. Implemented useowngenerator
2018-07-06 08:07:37 -07:00
tastybento
a72a49975f
Added default island flags and settings to config.yml
...
These are specified per-world so go in the world section.
2018-07-05 21:10:47 -07:00
tastybento
2b5664c7ff
New island checking improved to avoid infinite loop
...
If a world has the generator malfunctioning the server can crash if
there's no clear spot for an island. This limits the number of spots to
find an island to 10.
2018-07-05 17:25:21 -07:00
tastybento
66f3b5032d
Added protection for plates and buttons from arrows
...
Added button text for flag.
2018-07-04 18:32:43 -07:00
tastybento
3657dda094
Ops and mod.bypassprotect perms can bypass protection.
...
Moved AbstractFlagListener and clicklisteners into API package
2018-07-04 14:55:34 -07:00
tastybento
aa1ef9bcbd
Added new island and nether island schems
...
Fixed bugs with schem pasting, especially empty chests.
2018-07-03 17:51:01 -07:00
tastybento
265f05529b
Schems save in the respective addon data folders
2018-07-03 11:05:14 -07:00
tastybento
284839c6a4
Added 2 more tests to banner parsing
2018-07-03 09:51:21 -07:00
tastybento
4245ebaa33
Fix banner parsing issue
2018-07-03 09:41:09 -07:00
Florian CUNY
9f3e4e22dc
Tells how much time it took to fully load BSkyBlock
2018-07-03 11:20:52 +02:00
Florian CUNY
0cb21d8468
Fixed NPE when the ItemParser returns null when the locale banner is an invalid String or does not exist
2018-07-03 11:19:48 +02:00
tastybento
693625ab9a
Added placement based on bedrock.
2018-07-02 22:01:37 -07:00
tastybento
35247965fa
WIP - still need to fix bedrock saving in schem
2018-07-02 20:35:21 -07:00
tastybento
c430d910b2
Added SchemsManager to handle global schems
2018-07-02 18:51:18 -07:00
tastybento
d725a3e1d8
Schems: sign placeholders for names and spawn location
2018-07-02 11:21:10 -07:00
tastybento
afa21d25ed
Fixes schem issues.
...
https://github.com/tastybento/bskyblock/issues/192
2018-07-01 15:47:29 -07:00
tastybento
bc39e82dd2
Fixed stairs orientation.
2018-07-01 15:28:53 -07:00
tastybento
947853061e
Added entities to schems.
2018-06-30 10:08:16 -07:00
tastybento
dd2a65bef4
Moved some settings.
2018-06-30 08:25:44 -07:00
tastybento
70c6b75992
Added island schems
...
These are pasted as the default islands. I think better ones can be
made!
2018-06-25 20:13:39 -07:00
tastybento
56d63dc9c8
Added resets for island joining.
2018-06-25 16:40:28 -07:00
tastybento
11d257c64a
Added reset for inventory and enderchests.
...
Money is to do because it required Vault integration.
2018-06-25 15:17:16 -07:00
tastybento
638712566a
Added leave and join settings for money, inventory
2018-06-25 14:35:31 -07:00
tastybento
9450bc8da1
Moved team leave confirm to api.
2018-06-25 14:34:52 -07:00
tastybento
ae1eeec7cf
Fix for NPE on safe teleport when location cannot be found.
2018-06-24 18:23:57 -07:00
tastybento
eb855edfeb
Adds white list for remove mobs to settings.
2018-06-24 17:57:31 -07:00
tastybento
8125ec52af
Added default Game Mode to world settings.
...
https://github.com/tastybento/bskyblock/issues/179
Removed references to acid from settings for BSB.
2018-06-24 16:22:44 -07:00
tastybento
617fc712aa
Code clean up
2018-06-23 19:25:39 -07:00
tastybento
dec162744c
Code clean up
2018-06-23 19:20:02 -07:00
tastybento
e3731994b3
Removed duplicate code
2018-06-23 19:19:53 -07:00