Ranald
7c01199763
Cleaned code in IslandRespawnListener ( #587 )
...
1. Made respawn map private and final.
2. Changed value type from World to UUID. (weaker reference)
3. Removed ignoreCancelled from both listener annotations. (neither events can even be cancelled)
4. Changed program flow from "if-so-continue" to "if-not-return". (easier to follow and read)
5. Added basic comments on what each check does.
6. Removed redundant flag check. (wouldn't be in the map if it wasn't true)
7. Removed redundant Map contains, get, and then remove calls. (A simple call to remove and a null check are more efficient)
2019-03-02 22:47:52 +01:00
Florian CUNY
d34caf6546
Version 1.3.1
2019-03-01 21:14:44 +01:00
Florian CUNY
980cdb9b9f
Added Flags#EXPERIENCE_BOTTLE_THROWING (splited from POTION_THROWING)
2019-03-01 21:10:27 +01:00
Florian CUNY
f422a22f02
Fixed NPE in FlagListener if provided location is null
...
Fixes #585
2019-03-01 20:54:50 +01:00
tastybento
98e0da6af2
Fixes UTF8 database connection issue.
...
https://github.com/BentoBoxWorld/BentoBox/issues/582
Adjusts JDBC connection string to specifically use unicode and UTF8.
2019-02-28 20:35:10 -08:00
Florian CUNY
bbeefc20ac
Fixed mishandling in PortalTeleportationListener
...
it's a very stupid mistake... Which caused the "to End" teleportation to teleport the player to the Nether...
2019-02-27 14:25:32 +01:00
tastybento
d68817863a
Displays BentoBox version info alphabetically
...
https://github.com/BentoBoxWorld/BentoBox/issues/555
2019-02-26 09:09:12 -08:00
tastybento
2664acbe47
Adds null check for world in portal teleport listener
...
This should not occur, but apparently, it can sometimes.
https://github.com/BentoBoxWorld/BentoBox/issues/583
2019-02-26 08:19:05 -08:00
Florian CUNY
b5a657de52
Added Flags#LEAF_DECAY
2019-02-24 17:49:07 +01:00
Florian CUNY
7da7dd4884
Added a better "not-in-team" message for AdminTeamKickCommand
...
#577
2019-02-24 11:22:33 +01:00
Florian CUNY
73417fd990
Fixed AdminTeamKickCommand not working properly
...
#577
2019-02-24 11:11:25 +01:00
Florian CUNY
7fff4257fa
Added Flags#DRAGON_EGG
...
#559
2019-02-23 11:03:00 +01:00
Florian CUNY
ec75133d54
Version 1.3.0
2019-02-22 11:25:39 +01:00
Florian CUNY
587e400287
Fixed code smells
2019-02-22 10:40:05 +01:00
Florian CUNY
29eb4b0486
Disabled the whole GitHub connectors thing and hid related settings
2019-02-22 10:03:04 +01:00
Florian CUNY
a916e04136
Improved '/bbox v' description
...
#555
2019-02-22 09:58:48 +01:00
Florian CUNY
54aa2e61d3
Fixes IllegalArgumentException in VaultHook ( #574 )
...
* Added ability to get a User instance from an OfflinePlayer
* Made VaultHook use OfflinePlayer instead of Player
Fixes #572
* Fixed incomplete previous commit
2019-02-21 22:20:50 +01:00
Florian CUNY
e7b2a6ed39
Updated the config header to talk about the ability to reload config
2019-02-21 20:34:31 +01:00
Florian CUNY
29c7adec44
Marked 'general.database-type' ConfigEntry as "needsReset"
2019-02-21 20:18:05 +01:00
Florian CUNY
d91e29a2b7
Improved ConfigEntry explicative comments in config
2019-02-21 20:17:28 +01:00
tastybento
83827da448
Fixes a number of issues with spawn island setting
...
https://github.com/BentoBoxWorld/BentoBox/issues/523
Uses safe-spot teleport to teleport players.
The spawn point of an island was not being set by the setspawn command.
The spawn point on the spawn island can now be reset using the setspawn
command.
If the spawn point does not exist, a safe spot will be found.
Added AdminSetspawnCommand test class.
2019-02-21 10:46:29 -08:00
tastybento
8dd1ce10a9
Merge branch 'develop' of https://github.com/BentoBoxWorld/bentobox.git into develop
2019-02-21 10:42:59 -08:00
tastybento
278eb37033
Fixes bug where player will not exit SPECTATOR mode
...
If the proposed location was immediately safe, the player was not being
put back to the default game mode.
2019-02-21 10:41:59 -08:00
Florian CUNY
c0c2b63af6
Fixed spacing in "cannot add island to grid" error in IslandGrid
2019-02-21 18:29:41 +01:00
Florian CUNY
0d96eab394
Improved comments handling in YamlDatabaseHandler
...
And also added the "since" thing from ConfigEntry.
2019-02-21 18:28:23 +01:00
BONNe
54811c5dbd
Fix issue with offline players that kept inventory ( #564 )
...
Fixes #521
* Fix issue with offline players that kept inventory, after being kicked out of team. (#521 )
* Update src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamKickCommand.java
Co-Authored-By: BONNe <bonne@bonne.id.lv>
* Update IslandTeamKickCommand.java
* Change QuarantinedWorld to PendingKicks.
Increase PlayerChangedWorldEvent event priority.
2019-02-21 16:55:09 +01:00
Florian CUNY
cdb83e576a
Added a bunch more settings in config
2019-02-21 11:17:39 +01:00
Florian CUNY
1bdb919734
Added 'web.github.download-data' in config
2019-02-21 10:53:01 +01:00
Florian CUNY
e041107df9
Moved 'general.metrics' to 'web.metrics' in config
2019-02-21 10:39:06 +01:00
Florian CUNY
e115a1df4d
Fixed code smells
2019-02-21 10:00:59 +01:00
tastybento
160ef002e4
Fixes island coords that are not on the grid.
...
https://github.com/BentoBoxWorld/BentoBox/issues/549
2019-02-20 21:42:43 -08:00
tastybento
30e3dbf269
Fixes NPE if admin register cannot get a valid island slot
2019-02-20 13:17:11 -08:00
tastybento
da464621e0
Enables negative values in numbered permissions.
...
https://github.com/BentoBoxWorld/BentoBox/pull/560
2019-02-20 12:33:30 -08:00
tastybento
f515bb6205
Fixes bug where island location was shifting due to home calculation
...
https://github.com/BentoBoxWorld/BentoBox/issues/549
Using the add method on the location was actually changing the
fundamental island location and shifting all subsequent islands off by
0.5 every time.
2019-02-20 11:18:42 -08:00
tastybento
212c690117
Make sure to check for correct arguments.
2019-02-20 11:03:58 -08:00
Florian CUNY
e44894a803
Added Island's UUID in Island#showInfo(User)
2019-02-20 15:38:38 +01:00
Florian CUNY
2eba3224b7
Added #tabComplete(...) in AdminInfoCommand
2019-02-20 15:21:28 +01:00
Florian CUNY
302ab0fd3a
Fixed 'commands.island.team.invite.accept.confirmation' in en-US locale
2019-02-20 11:28:24 +01:00
BONNe
f5bbe35bd8
Fixed members not being able to set homes ( #569 )
...
#538
It happened because IslandManager#hasIsland(World,User) returns true only if island is owned by player, team members will always gets false, as they do not directly own an island.
2019-02-20 10:49:18 +01:00
tastybento
bce30ce83d
Fix to include team members.
...
96dda2c96d (r32386838)
2019-02-19 23:46:53 -08:00
tastybento
96dda2c96d
Fixed portal teleportation listener
...
The reason the test was failing was because the check on whether the
player had an island or not was not being done. I added the check back
in. So now, if a player has no island, the portal will just do nothing.
2019-02-19 23:27:11 -08:00
BONNe
34b2440117
Fixed owners who could not kick team members ( #567 )
...
So, UUID cannot be compared with == and !=. It should be always use UUID#equals(UUID) method.
2019-02-19 23:30:37 +01:00
BONNe
a505a3cede
Hopper, Furnace and Chest Minecarts are now protected by proper flags ( #565 )
...
#550
* Implement HopperMinecart, ChestMinecart and FurnaceMinecart protection by proper flags (#550 ).
* Add proper Minecart while checking player interact at entity event.
Minecraft flag should affect RidableMinecrat.
Added ExplosiveMinecart and CommandMinecart to avoid their usage, as they are not protected by other flags.
* Fixed the "basic" Minecart protection
2019-02-19 21:46:08 +01:00
Florian CUNY
9b1e955d18
Added Flags#FLINT_AND_STEEL, Flags#FIRE_BURNING, Flags#FIRE_IGNITE and removed Flags#FIRE + fixed Flags#FIRE_SCOOPING description in en-US locale
...
Closes #414
commit 0b551d174289ea1b75e55f0f4d268592a716f66f
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:50:08 2019 +0100
Updated FireListenerTest
commit 3f2cc83037e1994a686bacd4d8541eece8c9dc53
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:40:46 2019 +0100
Added descriptions in en-US for FIRE_BURNING, FIRE_IGNITE and FLINT_AND_STEEL
commit 880df9e904a0121804a73c2fcb40b9faa2aa290b
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:35:54 2019 +0100
Fixed description of FISH_SCOOPING
commit 02259b0f8fdad31e7431d4d525b74bee6b499813
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:34:54 2019 +0100
Improved description of FIRE_SPREAD
commit 92c5d137d8fb114dacdebc32626e04a5ee16982b
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:30:17 2019 +0100
Added Flags#FIRE_BURNING and Flags#Fire_IGNITE
These are SETTING flags
commit 0be4a87c1986a55a15fa16e87e4073921a269e34
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:21:52 2019 +0100
Added Flags#FLINT_AND_STEEL
#414
2019-02-19 10:56:11 +01:00
Florian CUNY
095237cd5d
Flags#values() will no longer return deprecated flags
...
Deprecated Flags are flags that will be removed. It is therefore better to not return them in this method.
2019-02-19 10:09:45 +01:00
Florian CUNY
66de769bb0
Added Island#getVisitors() and Island#hasVisitors()
2019-02-18 21:53:48 +01:00
Florian CUNY
8e21785811
Added 'pardon' as an alias in IslandUnbanCommand
2019-02-17 21:11:51 +01:00
Florian CUNY
9174410998
Added 'options' as another alias to IslandSettingsCommand
2019-02-17 15:10:30 +01:00
Florian CUNY
dd467f27be
Added the 'all players selector' to AdminResetsResetCommand#tabComplete(...)
2019-02-17 15:10:08 +01:00
Florian CUNY
dfc1f46730
Forgot to remove debug and commented-out code
2019-02-17 14:46:26 +01:00