tastybento
b3ffa1511b
Updated LockAndBanListener tests.
2020-09-12 16:01:23 -07:00
tastybento
40ecbc8ec6
Update API for event constructor - anchor spawn
2020-09-12 15:53:52 -07:00
tastybento
42622d6e38
Fixes test by using non-deprecated event constructor.
...
API 1.16.2 removed a deprecated EntityShootBowEvent event constructor.
2020-09-07 13:29:33 -07:00
tastybento
450c459350
Doors are not safe ground blocks.
...
https://github.com/BentoBoxWorld/BentoBox/issues/1517
2020-09-06 16:16:06 -07:00
tastybento
e9370b9a05
Prevent expel tab-complete from detecting invisible players.
...
https://github.com/BentoBoxWorld/BentoBox/issues/972
2020-09-02 21:50:25 -07:00
tastybento
9ff62dad2a
Added TextVariables.GAMEMODE constant
2020-09-01 16:58:13 -07:00
tastybento
ea4ef1e21a
Adjusts tabComplete for a number of commands.
...
Enforces the need to type at least one letter for whole-server tab
completes.
2020-08-31 22:03:51 -07:00
tastybento
c1ede3c66a
Prevent invites to vanished players
...
https://github.com/BentoBoxWorld/BentoBox/issues/972
2020-08-31 20:59:11 -07:00
tastybento
845d27de68
Adds or enhances tab complete for kick/uncoop/untrust
...
https://github.com/BentoBoxWorld/BentoBox/issues/1509
2020-08-30 13:41:04 -07:00
tastybento
1e4056e33a
Clears player cache by name and UUID
...
Previously only UUID was checked, but joining with a name and different
UUID is possible. This clears out the cache so commands that look up
names like ban do not use the old UUID.
https://github.com/BentoBoxWorld/BentoBox/issues/1468
2020-07-25 14:37:45 -07:00
tastybento
284b5865da
Prevents instant lava placing when scooping.
...
https://github.com/BentoBoxWorld/BentoBox/issues/1459
2020-07-22 22:29:37 -07:00
tastybento
bdbfd33a34
Fixed code smells ( #1444 )
...
* Code smell changes
* Fixes issues raised in reviews.
2020-07-09 09:03:01 +02:00
Florian CUNY
5e0e19a1be
Breaking boats/minecarts is now handled by their respective flags
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1430
Improved description for MINECART and BOAT flags
2020-07-04 13:11:09 +02:00
tastybento
2b5deb4133
Added unregisterFlag method to FlagManager
...
This was requested on Discord. Enables plugs or addons to tidy up flags
if they are disabled for some reason.
2020-07-02 16:05:42 -07:00
tastybento
89849442a9
Protected hoglin and strider breeding
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1419
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1418
2020-06-28 15:05:48 -07:00
tastybento
23fecdea54
Improves HeadGetter and Panel
...
Will replace more than one head in a panel if found.
2020-06-28 09:15:42 -07:00
tastybento
b87533fffb
Introducing (limited) 1.16.1 support ( #1416 )
...
* 1.16.1 changes
* Fixed failing tests in PhysicalInteractionListener
HOWEVER, the code somehow no longer protects the pressure plates... I'm investigating that.
* Implemented future-proof buttons, doors, fence gates, trapdoors protection
* Protected REDSTONE_WIREs under "REDSTONE" flag
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1421
* Fixed bug with pressure plates
* Fixed params order in assertEquals in PhysicalInteractionListenerTest
* Fixed EnderChestListenerTest errors
* Fixed most errors in BlockInteractionListenerTest
* Added 1.16.1 to ServerCompatibility
* Fixed BlockInteractionListenerTest
* Fixed backwards compatibility in BlockInteractionListener
Also made use of existing Tags (ANVIL, BEDS, SHULKER_BOXES)
* Fixed BlockInteractionListenerTest (again)
* Fixed backwards compatibility in PhysicalInteractionListener
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-06-26 22:09:33 +02:00
tastybento
9f5fb590e0
Fixes test broken by old flag name being used
...
cbbd361b03
2020-06-21 13:41:42 -07:00
Florian CUNY
cbbd361b03
Split the animal/monster spawn flags to "natural" and "spawners"
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1351
2020-06-21 17:47:01 +02:00
tastybento
7ee706c982
Fixes elytra protection. Adds test class.
...
https://github.com/BentoBoxWorld/BentoBox/issues/1403
2020-06-16 19:12:07 -07:00
tastybento
09072282bb
Replaces command running with single Util method ( #1374 )
...
Adds respawn commands.
2020-06-13 18:51:05 -07:00
tastybento
0fec5aec51
Added insufficient rank error and fixed tests.
...
The no permission error was being added, but thats wrong because it's
not lack of permission but lack of rank that is the issue. This adds a
new error and shows it in the various commands.
2020-06-06 17:01:09 -07:00
tastybento
38db699801
Uses async location loading for home teleporting ( #1381 )
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1241
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-06-02 10:22:35 +02:00
tastybento
d6b2a88b32
Fixes rank checking for team invites
...
Only owners could invite players successfully. This now checks based on
rank.
Added a method to allow rank checking on UUID. Had to make tests be
specific to the User.class.
https://github.com/BentoBoxWorld/BentoBox/issues/1377
2020-05-30 11:22:05 -07:00
tastybento
fdb4df3d93
Show correct missing permission for multi sethome command
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1367
2020-05-25 16:44:22 -07:00
tastybento
2e0ca14729
Uses perform command instead of direct call. ( #1359 )
...
* Uses perform command instead of direct call.
Goal is to enable 3rd party alias plugins to catch the command.
* Fires PlayerCommandPreprocessEvent before performCommand
Adds a / to the front of the default player commands.
Fixes issue with MyCommand plugin.
* Fixes tests
2020-05-23 19:53:55 -07:00
tastybento
feab01cde8
Add ability for DataObjects to specify custom db table name ( #1348 )
...
Automated migration for existing databases is supported.
2020-05-13 10:49:42 +02:00
Florian CUNY
937052d378
Fixed addon api-version compatibility check
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1346
Added a unit test to prevent regressions
Newer BentoBox releases are now properly considered "compatible" to addons expecting an older patch release
2020-05-09 11:26:00 +02:00
tastybento
9a517446c8
Panel should ignore color codes when checking player name for heads
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1343
2020-05-07 16:19:09 -07:00
tastybento
61fe218a16
Purge was not calculated player logins correctly.
...
https://github.com/BentoBoxWorld/BentoBox/issues/1333
2020-05-02 16:14:03 -07:00
Florian CUNY
314fddc400
Fixed tests
2020-04-29 18:51:07 +02:00
tastybento
f9906fa2f5
Fixed broken build. Fixed failed tests.
2020-04-27 18:58:14 -07:00
tastybento
e381d61c3c
Fixes issue where addon has no perms in addon.yml
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1312
2020-04-26 10:08:45 -07:00
tastybento
17186dd791
Remove unused imports
2020-04-26 08:32:52 -07:00
Florian CUNY
a5c710ce3a
Fixed tests
2020-04-26 13:17:22 +02:00
tastybento
1f3a79127a
Implements placeholder permissions for addons ( #1305 )
...
Implements #1303 .
Addons will no longer need to see their permissions updated each time there is a new gamemode. They can use [gamemode] in their permissions to automatically register the permissions on all available gamemodes.
2020-04-26 01:20:48 +02:00
tastybento
fe58159db3
Adds saveObjectAsync with a CompletableFuture return for databases ( #1308 )
...
Deprecates the saveObject() method
2020-04-26 01:00:49 +02:00
Florian CUNY
46ba40b70d
Fixed IslandsManager#getSafeHomeLocation throwing NPE if world is not an island world
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1306
The method now properly returns null if the world is not an island world.
2020-04-25 14:40:47 +02:00
tastybento
ae63125f50
Enables UUIDs to be used in admin commands as well as names ( #1298 )
...
Implements a solution for #1297 .
Adds Util#getUUID(String nameOrUUID)
2020-04-23 21:16:09 +02:00
tastybento
b1dcec2160
Adds API to enable commands to be hidden from help and tab ( #1301 )
...
Implements #1300 .
Adds CompositeCommand#setHidden(boolean).
2020-04-23 20:54:45 +02:00
tastybento
eee8709636
Combined safe spot checking into one place.
...
We had two sets of checking with different criteria. This consolidates
them.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1296
2020-04-22 18:25:10 -07:00
tastybento
88b331d1e4
MySQL databases were not saving properly on shutdown.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1292
2020-04-20 18:37:42 -07:00
tastybento
85d5a3a6ac
Adds a single character prefix to database tables ( #1278 )
...
* Adds a single character prefix to database tables
https://github.com/BentoBoxWorld/BentoBox/issues/1277
* Fix tests
* Fix bug with substring
2020-04-18 14:16:36 -07:00
tastybento
f5f2d7ac39
Fixes IslandTeamKickCommand test (commands.island.team.kick.cannot-kick)
2020-04-17 07:14:13 -07:00
tastybento
d327ea4a89
Protect paintings from projectiles and being placed.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1273
2020-04-09 16:02:51 -07:00
tastybento
b6b9b11f53
Removed unused imports
2020-04-07 13:42:42 -07:00
Florian CUNY
5b01f39f9e
Fixed tests and logic with coop/trust limits
2020-04-05 15:15:26 +02:00
Florian CUNY
e7b1f51a83
Fixed tests
2020-04-05 00:38:30 +02:00
Florian CUNY
962b7d734a
Removed MVdWPlaceholderAPIHook and all related methods
...
It was increasingly causing issues, ranging from long start times, unreliability with some of our placeholders, to much more...
There's a way for MVdWPAPI users to get PAPI's placeholders, so they should definitely use that instead.
2020-04-04 15:38:29 +02:00
Florian CUNY
2c7316ba21
Added AdminPurgeStatusCommand and improved some purge-related messages
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1254
2020-04-04 15:31:22 +02:00
tastybento
02b16c233c
Fixes tests.
2020-04-02 14:49:45 -07:00
tastybento
c724b6bbf2
Remove unused import
2020-04-02 13:21:26 -07:00
Florian CUNY
9e620cbbac
Fixed spawn islands that could be purged as unowned
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1255
Also added a few more tests to prevent regression
2020-03-31 14:30:27 +02:00
tastybento
25d43c4f9f
Removes velocity on teleporting
...
https://github.com/BentoBoxWorld/BentoBox/issues/1248
2020-03-28 09:42:55 -07:00
tastybento
8e77dc95df
Fix perm tests in JoinLeaveListener.
2020-03-18 16:35:20 -07:00
tastybento
1933d498f6
Fixes handling of negative perms for value setting
...
https://github.com/BentoBoxWorld/Limits/issues/73#issuecomment-600748928
2020-03-18 14:18:38 -07:00
tastybento
71c923975b
Fixes tests for PVPListener class.
...
Were broken by PR https://github.com/BentoBoxWorld/BentoBox/pull/1230
2020-03-18 08:50:10 -07:00
tastybento
0a86ddd0ab
Fixes island creation on joining.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1221
The original code could actually never work because the check for
whether a player had played before or not was occuring immediately after
addPlayer, which added the player to the server. Also, the code to run
was running in a thread and not on the main thread, so if it had run
could have caused errors.
2020-03-10 18:30:50 -07:00
tastybento
34ce9d3fc2
Speed up new island spot search.
...
Relates to https://github.com/BentoBoxWorld/CaveBlock/issues/44
Added a test case to benchmark search algorithms.
2020-03-06 18:04:38 -08:00
tastybento
30d9ed3887
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1216
2020-03-05 16:47:52 -08:00
tastybento
669986b422
Added IslandEventTest class and fixed bugs with IslandEvent
...
IslandReserveEvent was missing.
2020-03-04 19:02:50 -08:00
tastybento
b99be85bad
Removed unused comments
2020-03-04 18:50:23 -08:00
tastybento
f7a3da1502
Fixes IslandResetCommandTest failure
2020-03-04 18:47:37 -08:00
tastybento
b4a1398fcb
Limits island height to value values only.
...
Relates to https://github.com/BentoBoxWorld/SkyGrid/issues/39
2020-02-29 15:29:24 -08:00
tastybento
8393784498
Fixes projectile damage by block bug
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1211
2020-02-29 10:04:59 -08:00
tastybento
b189ebde65
Ignores colors when checking panel names
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1202
Black is a default color so there can be a mismatch between the
inventory title and the expected title if colors are used. In general,
it is safer not to check colors for GUIs.
2020-02-21 18:53:20 -08:00
tastybento
65dbd530d5
Added IslandPreclearEvent
...
This event gets called prior to an island being cleared of players and
other data. This can happen before a reset or an admin delete. It is
there so addons can perform tasks on the players before the island is
cleared.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1200
2020-02-20 16:56:35 -08:00
tastybento
d3a7a908f1
Fixes tests for NewIsland class
...
Broken by https://github.com/BentoBoxWorld/BentoBox/pull/1179
2020-02-19 19:46:49 -08:00
Florian CUNY
f383c196a5
Updated FLINT_AND_STEEL flag description to also tell about campfires
2020-02-12 13:39:01 +01:00
Florian CUNY
120be13b36
Fixed and improved Breeding protection
...
It wasn't catching breeding with some newer animals (Pandas, Foxes...), was a bit overprotective (it could prevent feeding some animals), or wasn't catching some breeding items (Golden Carrots, ...).
I rewrote it so that every animal is now protected with the foods that actually make them breed (based off the MC wiki page about Breeding).
Once we will move to 1.15 API, we will have to add BEES in that.
2020-02-12 11:36:08 +01:00
tastybento
05a4b2d2c7
Adds new perm for bypassing delayed commands.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1136
2020-02-07 18:42:39 -08:00
tastybento
332967950f
Fixes the API checking algorithm.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1176
2020-02-07 18:25:40 -08:00
tastybento
898e310e4f
Handle null itemInHand for BlockPlaceEvent
...
Officially, null is invalid as an in-hand item. It should be AIR.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1172
2020-02-07 11:52:01 -08:00
tastybento
ab89e4835e
Fixes island center startx/z correction.
...
https://github.com/BentoBoxWorld/BentoBox/issues/1169
2020-02-04 12:20:31 -08:00
Florian CUNY
2e3b9962c8
Fixed "PVP disabled in ..." messages not using world-specific messages.
...
No matter which dimension the player was in, in some cases, it was telling "PVP disabled in the Overworld".
2020-02-02 11:07:27 +01:00
tastybento
07706d78e1
Enables tp commands to work from console.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1158
2020-01-30 10:12:31 -08:00
Florian CUNY
093373550d
Fixed tests (again) for IslandTeamInviteAcceptCommand
2020-01-25 08:45:06 +01:00
Florian CUNY
1bcb12a51f
Fixed tests for IslandTeamInviteAcceptCommand
2020-01-24 21:56:18 +01:00
tastybento
97f7b2c563
Deleted islands could not be used as new islands
...
Added test class for DefaultNewIslandLocationStrategy to cover the
cases.
https://github.com/BentoBoxWorld/BentoBox/issues/1147
2020-01-21 13:15:55 -08:00
tastybento
013e17d73a
Removed unused import.
2020-01-18 08:43:47 -08:00
Florian CUNY
0559a86e8d
Implemented optional argument to AdminGetrankCommand to specify which island to perform the check on.
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1106
Updated en-US + added 'general.errors.player-is-not-owner' message.
2020-01-18 10:47:08 +01:00
Florian CUNY
abf5e1f071
Fixed failing test in JoinLeaveListener (erroneous)
2020-01-18 09:58:16 +01:00
Florian CUNY
e17056376a
Fixed erroring tests
2020-01-18 09:52:02 +01:00
Florian CUNY
37a4145322
Added specific messages when entering/leaving an island the player is member of
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1084
Improved color codes for existing messages
2020-01-17 13:34:05 +01:00
tastybento
c7e0492612
Fixed bug (sonar cloud) and improved test PortalTeleportationListener
2020-01-14 15:01:19 -08:00
tastybento
8b27003cfb
Stops velocity for player going through end portal to end
...
https://github.com/BentoBoxWorld/BentoBox/issues/1118
2020-01-10 15:41:59 -08:00
tastybento
7a7641354f
Compiling under Java 9+ ( #1112 )
...
* Compiles in Java 11
* Compile under Java 11 only.
2020-01-10 23:12:37 +01:00
tastybento
1c500a0c05
Redstone on islands will operate if mods or ops are present
...
even if the offline redstone flag is active and no team members are
online. This enables staff to bypass the "Offline Redstone" feature,
which means if staff need to moderate players islands then redstone is
an issue.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1102
2020-01-07 17:20:04 -08:00
tastybento
a3a0efb3a3
Removes only team members from island.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1096
2020-01-07 13:12:53 -08:00
tastybento
aa5c253e03
Fix for double calling of events ( #1111 )
...
* Fixes tests for AdminSetrankCommand
https://github.com/BentoBoxWorld/BentoBox/issues/1107
* Fixes double calling of events.
https://github.com/BentoBoxWorld/BentoBox/issues/1110
* Makes AddonEvent static
https://github.com/BentoBoxWorld/BentoBox/pull/1111
2020-01-07 10:15:12 -08:00
tastybento
28200a44a8
Removed unused imports
2020-01-06 11:22:37 -08:00
Florian CUNY
a0718f0e6b
Added a 3rd optional "island owner" argument to AdminSetrankCommand
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/787
This allows to coop or trust players on another player's island.
Related tests are ignored due to a lack of time to fix them.
2020-01-05 17:45:53 +01:00
Florian CUNY
ceef422c54
Improved tab-completion for AdminSetrankCommand
...
Relates to https://github.com/BentoBoxWorld/BentoBox/issues/787
2020-01-05 13:38:18 +01:00
Florian CUNY
fab6b295b6
Fixed tests
2019-12-31 14:38:49 +01:00
Florian CUNY
53d728af94
Added LECTERN protection flag
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1094
2019-12-31 14:06:49 +01:00
Florian CUNY
4a209d875e
Fixed players being stuck in SPECTATOR gamemode when accepting invite
2019-12-30 16:17:10 +01:00
tastybento
21eeedbbb0
Fixes addon disablement in onEnable.
...
Clean up imports.
https://github.com/BentoBoxWorld/BentoBox/issues/1090
2019-12-29 05:55:57 -08:00
Florian CUNY
fbceaa51d3
Improved UserTest#testHasPermission()
2019-12-23 14:06:56 +01:00
Florian CUNY
fc23da4343
Added Util#isInteger() and made commands use it for more reliability
2019-12-21 14:23:32 +01:00
Florian CUNY
1d486efbe7
Added AdminRangeAddCommand, AdminRangeRemoveCommand
...
Implemented https://github.com/BentoBoxWorld/BentoBox/issues/1072
Moved the various "invalid-value" messages to the admin range node in en-US.
Made AdminRangeSetCommand use the more generic 'must be positive number' message - causes issues with floats, which I will fix later on.
2019-12-21 11:34:38 +01:00