Commit Graph

1424 Commits

Author SHA1 Message Date
Florian CUNY
7e17474e83 Fixed the island untrust command not using the trust permission
It was using the coop permission instead
2020-01-24 21:19:13 +01:00
Florian CUNY
3b0f023fac Fixed subcommands not inheriting permissions from parent commands (mostly admin commands) 2020-01-24 21:18:33 +01:00
Florian CUNY
3147357bad Added an optional argument to AdminTeleportCommand to teleport another player
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1120
2020-01-24 19:34:47 +01:00
Florian CUNY
12f483663c Added 1.15.2 to the compatible versions
https://github.com/BentoBoxWorld/BentoBox/issues/1150
2020-01-24 14:41:26 +01:00
tastybento
5ab5954f47
Postgres implementation (#1142)
* WIP for https://github.com/BentoBoxWorld/BentoBox/issues/1093

* JSON based PostGresql

* Completes PostgreSQL suport

* Changed Postgres connector comments

* Put back rest of Postgres jdbc URL

* Update PostgreSQLDatabaseHandler.java
2020-01-23 07:56:30 -08:00
tastybento
ac850907cc Zero fall velocity when going through end portals
https://github.com/BentoBoxWorld/BentoBox/issues/1118
2020-01-22 14:43:32 -08:00
tastybento
6ac51453a0 Removed Postgres DB from config until it is implemented.
Put minimum version numbers into config for databases.
https://github.com/BentoBoxWorld/BentoBox/issues/1149
2020-01-21 13:29:51 -08: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
a5503851c3 Change to island range perm check on ownership change.
If owner has no perms, then this check will not be done and the range
will not change. Previously, it was always reseting to the default
range.

https://github.com/BentoBoxWorld/BentoBox/issues/1145
2020-01-18 22:36:38 -08:00
tastybento
e6e5c901b7 Strengthens to error when not loading addon for API reasons.
Relates to
2f35f1145d
2020-01-18 08:46:30 -08:00
Florian CUNY
2f35f1145d Made on-the-fly addon incompatibility detection logging as warning instead of default 2020-01-18 13:53:34 +01:00
Florian CUNY
d8d9061f84 Added 'api-version' parameter to addon.yml to allow specifying a minimum required BentoBox version
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1131
API: added InvalidAddonDescriptionException, AddonDescription#getApiVersion()
2020-01-18 13:52:26 +01:00
Florian CUNY
d8dda75ca5 Improved '/bentobox version' gameworld layout to convey information through color-stripped text
The previous design had a flaw: if the output was pasted as text, we would not be able to tell if the dimension was disabled or if islands were disabled in that dimension.
2020-01-18 11:41:31 +01:00
Florian CUNY
01df19c424 Slightly improved the Blueprint Bundle Editor panel
Added icons for world's dimensions, and made the "separator" glass panes have an empty name instead of a '-'.
2020-01-18 11:24:50 +01:00
Florian CUNY
44354175e4 Moved world dimensions names to 'general.worlds' in en-US 2020-01-18 11:21:11 +01: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
BONNe
2192e3fa4e Add new IslandEvent: IslandProtectionRangeChange (#1109)
* Add new IslandEvent: IslandProtectionRangeChange.

This event is fired when island protection range is updated. It contains new and old protection range values.
Event implements cancellable as other IslandEvent, but cancelling (or changing event values) is not implemented.

* Fix extended class.
IslandProtectionRangeChangeEvent should extend IslandBaseEvent.
2020-01-17 13:42:53 +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
e62240f523
Puts the GSON serialization on main thread. (#1141)
https://github.com/BentoBoxWorld/BentoBox/issues/1128
2020-01-16 17:00:23 -08:00
tastybento
a9a9a9adee Put a null check into IslandCache to avoid null key in map. 2020-01-14 17:00:54 -08:00
tastybento
c7e0492612 Fixed bug (sonar cloud) and improved test PortalTeleportationListener 2020-01-14 15:01:19 -08:00
tastybento
227ebef824 Reverting to non-static AddonEvent. Reminder don't break API
Next time I'll add to the API but not break it. I actually did not
realize this API was being used (I forgot).
2020-01-12 16:30:50 -08:00
Florian CUNY
70f8538b74
Updated WorldSettings#getOnLeaveCommands() javadoc 2020-01-12 15:18:30 +01:00
tastybento
ab6a9978ff Added back non-static AddonEvent builder to not break API
Relates to https://github.com/BentoBoxWorld/Level/issues/119
2020-01-11 08:50:14 -08:00
Florian CUNY
9169242434 Made the island_name placeholders return default island name if no custom one is set
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1108
2020-01-11 11:55:51 +01:00
Florian CUNY
ffa873be68 Fixed a possible nullability bug in EnterExitListener 2020-01-11 11:53:50 +01:00
Florian CUNY
c307f9b844 Prevent loading Blueprint Bundles that have duplicate uniqueIds
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1117
I also slightly improved the logs.
2020-01-11 11:38:30 +01:00
Florian CUNY
31d92961b7 Added some nullability annotations in BlueprintsManager 2020-01-11 11:21:15 +01:00
tastybento
6361bb9a4e Removed chevron from javadoc 2020-01-10 16:50:24 -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
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
90ad75baa9 Fixes config offset bug for island location.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1105
2020-01-07 15:30:21 -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
c385ee78f5 Lowers priority of banned command listener to catch before other plugins
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1103
2020-01-06 13:02:50 -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
85b4c4ff4a Added AdminBlueprintRenameCommand
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1082
2020-01-02 16:42:33 +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
85dc95357c Updated PAPER compatibility to SUPPORTED 2019-12-31 01:48:30 +01:00
Florian CUNY
4a209d875e Fixed players being stuck in SPECTATOR gamemode when accepting invite 2019-12-30 16:17:10 +01:00
Florian CUNY
c0a38fb9eb Fixed another bunch of code smells (Sonarcloud) 2019-12-30 15:36:17 +01:00
Florian CUNY
50c183d2ea Fixed incorrect translation when changing language 2019-12-30 15:25:19 +01:00
Florian CUNY
704c249b49 Fixed some code smells (Sonarcloud) 2019-12-30 14:54:11 +01:00
tastybento
e290a46c4e Fixed issue where addons were disabled incorrectly. 2019-12-29 14:56:22 +00:00
tastybento
602b5b5c5c Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2019-12-29 05:56:08 -08: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
1a8be26010 Fixed chorus flowers not being protected from breaking if destroyed by arrow/trident
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/812
Note it can cause the block to flicker or to turn into a ghost block. The Bukkit API does not provide a way to actually cancel the block breaking, therefore we need to resort to a delayed task.
2019-12-29 14:48:02 +01:00
Florian CUNY
efe8a55328 Removed unused imports from 6dac9cad30 2019-12-27 15:40:53 +01:00