Commit Graph

2534 Commits

Author SHA1 Message Date
tastybento
ac8458fd3c Add IslandHomesCommand
https://github.com/BentoBoxWorld/BentoBox/issues/1737
2021-04-07 21:36:49 -07:00
tastybento
2098fd636a Fix home listing on error.
https://github.com/BentoBoxWorld/BentoBox/issues/1737
2021-04-07 21:20:48 -07:00
tastybento
3e068e4283 Fix missing fields in copy constructor for Island class. 2021-04-03 16:33:55 -07:00
BONNe
dc829786d3
Fixes a bug with Commands not being able to find subcommand if defined label contains capital letter. (#1724) 2021-03-27 18:19:44 -07:00
tastybento
609322d582 Remove debug. 2021-03-27 17:05:13 -07:00
tastybento
4b9b6774ea Teleport based on protection center and world height. 2021-03-27 16:57:15 -07:00
tastybento
c6e2a9bd66 Admin teleport now goes to island spawn locations if they exist 2021-03-27 09:23:24 -07:00
tastybento
3c4b7deb75 Treat teleporting as moving for delayed commands.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1722
2021-03-21 15:50:47 -07:00
Florian CUNY
8ecfee4359
Added since javadoc to getIslandsManager and getPlayersManager()
Completes 2bef0fe57c
2021-03-21 22:08:21 +01:00
tastybento
9e0fdbd210 Add Util method to enable multi-lingual broadcasts. 2021-03-21 09:04:30 -07:00
tastybento
99e6e11a4a Disable LangUtilsHook for now until @Poslovitch can review. 2021-03-19 15:18:44 -07:00
tastybento
87bdee0946 Return island protection center instead of island logical center
IslandsManager.getIslandLocation(world, uuid) is used to find the
starting point for the island home if a safe home for players cannot be
found. It returns the island center location but should return the
center of the island protection because that can now be in a different
location.
2021-03-17 15:18:55 -07:00
BONNe
592b4e3d1f
Fixes player teleportation in void. (#1716)
The issue happens mostly with the end portals. Apparently, teleportation to the end is processed before the Bukkit task that runs SafeSpotTeleport. The first check if a player is in the starting world fails, and SafeSpotTeleport is not called. 

I set the event to be cancelled in all situations when we do not create portals, so it always triggers SafeSpotTeleport. This should fix the bug with players appearing in the void.
2021-03-16 19:07:36 -07:00
BONNe
8ce30a7cb5
Fixes spawn platform position in the end. (#1713)
In the vanilla end, the highest block in the End can be above 63. Check for just 0, 63, 0 may be incorrect for most of the end vanilla worlds.
2021-03-16 19:07:05 -07:00
apachezy
4582b23522
Added getMusicDiskDesc into LangUtilsHook. (#1715)
Co-authored-by: zhangYi <apachezy@hotmail.com>
2021-03-15 14:27:28 +01:00
BONNe
cf5483e49d
Fixed end platform generation (#1717)
If a player has end portal at Y=0 or Y=1, then they were spawned in the void, if makePortals option was enabled.
It happens because end portals are generated with 2 air layers above the obsidian platform. So minimal location is necessary to be at least 2 (2 for air and obsidian at 0).
2021-03-15 14:23:25 +01:00
tastybento
d70b07c273 Date formatting was choking sometimes. This is simpler. 2021-03-14 18:20:36 -07:00
tastybento
74023914a7 Fixed enum locale for English and Japanese.
Sort based on translated name in InvincibleVisitors.
2021-03-14 11:57:55 -07:00
tastybento
0769af0c65 Remove debug lines. 2021-03-14 10:29:02 -07:00
tastybento
d97d15d47a Added locale strings for the DamageCause enum. Used in InvincibleVistors
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1705
2021-03-14 10:18:33 -07:00
tastybento
1feaddf704 Avoid loading or enabling disabled addons. 2021-03-13 15:00:49 -08:00
tastybento
45bcf64da5 Added IslandNewIslandEvent
Gets fired when a player is teleported to their new island for the first
time.
2021-03-13 10:47:02 -08:00
apachezy
e36dc68ccd
Improved zh-CN.yml (#1708)
* Improved zh-CN.yml

* Delete an error.

* days-one-or-more #1707

Co-authored-by: zhangYi <apachezy@hotmail.com>
2021-03-13 08:44:19 -08:00
apachezy
0f0d8b9ebc
Added LangUtils support. (#1693) 2021-03-12 20:04:34 -08:00
tastybento
031d789896 Enable to use command line to set spawn island settings.
https://github.com/BentoBoxWorld/BentoBox/issues/1703
2021-03-09 22:18:48 -08:00
tastybento
7d6cce6563 Minor Java doc addition to clarify getAddon() 2021-03-07 10:09:18 -08:00
tastybento
9c1a239501 Fixed bug where AllLoaded method was not being called on BentoBox reload 2021-03-06 15:08:54 -08:00
tastybento
f1f374c258 Do not coop already cooped player.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1696
2021-03-06 12:25:36 -08:00
tastybento
a03aa51fb4 Fix NPE with admin teleport command. 2021-03-06 08:14:31 -08:00
tastybento
5fc06de146 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-03-03 21:33:33 -08:00
tastybento
3a8c1e7df0 Add support for villager stats to blueprints.
https://github.com/BentoBoxWorld/BentoBox/issues/1695
2021-03-03 21:33:23 -08:00
tastybento
b6a69d0c90
Switch to island homes from player homes. (#1689)
* Switch to island homes from player homes.

Stores home locations and max homes in the Island object. Adds commands
required to manage home names, specifically rename and delete. I did not
add list as there is tab complete on island go, but it may be required.
2021-03-01 10:42:08 -08:00
tastybento
6309c675d4 Added a way to skip block checking for game modes.
https://github.com/BentoBoxWorld/BentoBox/issues/1694
2021-02-28 15:22:57 -08:00
tastybento
f4ff1bb412 Filter out null islands in worlds where players have none in world. 2021-02-28 11:55:43 -08:00
tastybento
9bb45ae426 Fix bug with IslandsManager maxMembers NPE when logging in. 2021-02-27 19:18:45 -08:00
tastybento
dfd4df4e05
Adds maxMembers to the Island object for persistent storage (#1691)
* Adds maxMembers to the Island object for persistent storage

https://github.com/BentoBoxWorld/BentoBox/issues/1690

* Expanded approach to include coop and trusted ranks.

* Checks for max members/coops/trusts on accept based on island setting.

* Write island max member/coop/trusted if owner joins server

This updates the island's settings based on the owner's permissions.
2021-02-27 11:19:02 -08:00
tastybento
938297ab14 Adds command-line settings for admins.
https://github.com/BentoBoxWorld/BentoBox/issues/1658
2021-02-27 11:14:04 -08:00
tastybento
cc47fcb823 Show better error if addon cannot be loaded. 2021-02-21 09:28:02 -08:00
tastybento
ed85dce1b2 Fire TeamLeave and TeamKick events earlier so they can be canceled. 2021-02-20 11:13:55 -08:00
tastybento
c9a7804921 Handle new Spigot version naming convention
Spigot added the build number to the version number.

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1648
2021-02-19 15:03:05 -08:00
tastybento
06caf1c147 Ignore islands in worlds that are not loaded. 2021-02-19 13:13:09 -08:00
tastybento
db3b339be2 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-02-17 18:37:10 -08:00
tastybento
04be4cf7de Fixed long standing bug in unused Util method getClosestIsland
Changed AdminRegisterCommand to use the method to remove code
duplication.
2021-02-17 18:36:57 -08:00
Huynh Tien
2bc5e59e9a
Fix loop in nether portals (#1686)
* Fix loop in nether portals

Close #1685

* Forgot to import
2021-02-17 11:53:22 -08:00
tastybento
969b413588 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-02-16 17:15:19 -08:00
tastybento
97ac70cea3 Handle null users when getting island. Added test case.
A recent change to placeholders meant that it is possible for users to
be null. See https://github.com/BentoBoxWorld/BentoBox/issues/1654
2021-02-16 17:15:07 -08:00
BONNe
79c3804603
Implements ability to use faster player head gatherer (relates to #1646). (#1679)
Adds 3 new BentoBox options:
- use-cache-server: option which allows to use mc-heads.net API for gathering player heads. It is a bit faster than Mojang API.
- heads-per-call: option which allows to specify how many heads will be requested at once per each API call.
- ticks-between-calls: option which allows to specify how many ticks should be waited until next API call.

All these options will allow much more faster player head gatherer.

Changes includes optimization for Mojang API too. For servers in online mode, HeadGetter will use Player UUID, instead of asking for UUID from API.
2021-02-16 15:57:04 -08:00
tastybento
6316ca2411
Enables panels to know the context of the world that initiated them. (#1682)
Panel API did not have this context so commands had to force players to
be in the world that the command used. These changes add the world
context to the PanelBuilder and changes the settings panels to use it.
Players and admins can now run settings commands in any world.

https://github.com/BentoBoxWorld/BentoBox/issues/1673
2021-02-16 15:56:34 -08:00
tastybento
69b40ee141 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-02-15 15:50:45 -08:00
tastybento
14592ec518 Improves obsidian scooping in presence of water.
https://github.com/BentoBoxWorld/BentoBox/issues/1683
2021-02-15 15:50:32 -08:00
BONNe
f66200034d
Fixes crash loading addon with SNAPSHOT api-version (#1684) 2021-02-15 09:18:08 -08:00
tastybento
fb4ad90328 Obsidian scooping was weird with just one bucket.
It's not clear why this was flakey. It might be that the event was being
canceled.

https://github.com/BentoBoxWorld/BentoBox/issues/1683
2021-02-14 22:25:08 -08:00
tastybento
b27d0bbca4 Use BlockInteractionListener to protect Hives and Bee Nests 2021-02-14 16:56:38 -08:00
tastybento
770d8b0bef Harvest listener 2021-02-14 12:52:51 -08:00
tastybento
582aa9fa9e Adds world flag to prevent pets from teleporting off home island
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1442
2021-02-14 11:05:40 -08:00
tastybento
1d9ce7241e
Decouple island location from island center. (#1659)
* Decouple island location from island center.

This enables the protection area to move anywhere within the island
boundaries

* Paste island at island location.

* Move visitors to the island location

* Added island location placeholders

* Use island location instead of island center

* Fix tests

* Allow radius 1 islands.

* Correct admin range set limit

* Debug in progress

* Fix island deletion.

The speed option was doing nothing except causing repeated actions on
the same chunks.

* Soft depend for WorldGeneratorApi for Boxed game mode

* Changed to "protectionCenter".

Added logic to expand the deletion area based on moving the island
protection location and range instead of just deleting everything. This
will keep deletion time to a minimum for BSkyBlock, etc.

* Fix tests.
2021-02-13 10:19:53 -08:00
tastybento
ce79588805 Fixed admin switch command when inside another island. 2021-02-07 10:05:29 -08:00
tastybento
e7672b17c4 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-02-06 12:08:20 -08:00
tastybento
1da3539f02 Changed AdminSwitchCommand to use player meta data
Fixed tests. Abstracted common test code to AbstractCommonSetup class.
2021-02-06 12:08:09 -08:00
apachezy
e134951e61
Fix a minor problem in language translation (#1674)
Co-authored-by: apacheZy <apachezy@hotmail.com>
2021-02-05 18:57:06 -08:00
tastybento
4e7b78832a
Nether portals (#1597)
* Add WorldSettings methods for portals

* Vanilla portals option added.

Currently defaulted on for testing. Ultimately, the game mode config can
decide if the vanilla portal is used or not.
Note that the end platform is just a set of obsidian blocks.

* Reduces search radius when close to island edge

* Adds and fixes tests

* Use EntityPortalEnterEvent instead of PlayerMoveEvent

* Removed duplication between nether and end portalling

* Code clean up

* Single event handler for nether and end.

* Created new PlayerEntityPortalEvent class to enable entity teleports

Unfortunately, PlayerPortalEvent and EntityPortalEvent are not fraternal
classes so there's no way to apply code to both except via this
abstraction class.

Tests fail.

* Places end portal always in the same place.

* Teleport entites to nether or end

Identify the teleport cause manually because there is no method.
Teleports to the End happen but seem to be slightly different locations.
Some entities will disappear, others will stick around. I don't know
why.

* Put defaults back to false.

* Create end spawn point to default point when not making end islands

* Fixed PortalTeleportationListener tests.

* Updated since tag
2021-02-02 17:19:22 -08:00
Alberto
455e662d22
Fix player not being expelled from visitors if in team (#1670)
* Fix player not being expelled from visitors if in team

* Error on arguments
2021-02-02 17:16:42 -08:00
tastybento
bb7ed2b85c Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-01-30 10:35:37 -08:00
tastybento
0372d6766f Fixed bug where End not being deleted. 2021-01-30 10:35:26 -08:00
Florian CUNY
82f3375459 Updated bStats to 2.1.0
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1664
2021-01-30 15:39:21 +01:00
tastybento
2bef0fe57c Added convenience methods getPlayersManager() and getIslandsManager()
This just helps make the API more friendly and consistent with other
manager getters.
2021-01-24 14:14:31 -08:00
tastybento
01d8075318 Remove null check for user in BasicPlaceholderExpansion
https://github.com/BentoBoxWorld/BentoBox/issues/1654
2021-01-21 15:30:08 -08:00
tastybento
1eee225def Added test case for getSafeHomeLocationNoIsland() for player with no
island.

https://github.com/BentoBoxWorld/BentoBox/pull/1651
2021-01-20 16:01:06 -08:00
Thomas Cordua-von Specht
737ad16ff6
Fix NPE in getSafeHomeLocation (#1650) (#1651) 2021-01-20 15:48:22 -08:00
Florian CUNY
c62221efb8 Added 1.16.5 compatibility, set < 1.16.4 versions as not supported and <= 1.15.2 as incompatible
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1648
2021-01-17 14:31:04 +01:00
Florian CUNY
ab9577b93e Updated /bbox about : we're in 2021 now! 2021-01-16 23:23:29 +01:00
Florian CUNY
b8d67a653c Fixed some code smells (Sonarcloud)
Put some fields as "final"
Made all abstract classes' constructors "protected" (them being public serves no purpose since they cannot be instantiated outside of child classes)
Did some minor code prettifying
2021-01-16 11:27:12 +01:00
tastybento
605df692f0 Fix Yaml test 2021-01-08 21:24:54 -08:00
tastybento
7e52a5f641 Added an isChanged() method to Island
The island will only be saved if isChanged() is true. It is set to true
if any setter is used or a field is changed.

This should help servers shutdown a lot faster and background database
saves go quicker. Only applies to Islands!

https://github.com/BentoBoxWorld/BentoBox/issues/1629
2021-01-08 20:55:43 -08:00
tastybento
2701eb92d7 Do not use orElse as it ignores the reservation.
https://github.com/BentoBoxWorld/BentoBox/issues/1636
2021-01-08 20:06:21 -08:00
tastybento
2c7f54fe10 Use orElseGet instead of orElse
orElse is a trap because it evaluates even if the Optional is empty.
orElseGet is the correct way.
2021-01-08 20:05:23 -08:00
tastybento
78b10cb7bf Do not remove entities that have getRemoveWhenFarAway() false.
If an entity has this set to false, then the area clear will not affect
it. @BONNe FYI
2021-01-04 22:50:16 -08:00
tastybento
4f0ef8feb0
Better island meta data api (#1630)
* Improves the meta data API for Island

* Unified API into MetaDataAble Interface

All classes now use the same interface and Optionals. Reduces code
duplication and makes the API the same across the board.

* Version 1.15.6

Fixed since JavaDocs
2021-01-03 11:31:34 -08:00
tastybento
054ed30577
Revert "Persistent entities should never be removed. (#1608)" (#1626)
This reverts commit 0e4b3b40fa.
2020-12-31 09:51:09 -08:00
tastybento
d7c7559546 Adds a persistent metadata API to User and Island classes.
This is modeled after the Bukkit metadata API with the difference that
it is persistent, i.e., metadata is stored to the database. Metadata can
be placed on Islands or Users.

This API should be useful for addons that do not want or need to create
their own database tables and instead just want to tag the user with
some data, or tag the island with some data. It is intended for small
amounts of data, like boolean tags or other values.
2020-12-28 20:39:08 -08:00
tastybento
72de0301e6 Added visited island UUID placeholder
Added test class for game mode placeholders.

Removed duplicated code for visited island placeholders.
2020-12-28 12:18:17 -08:00
tastybento
20ba8347a1 Added %[gamemode]_island_uuid% placeholder.
https://github.com/BentoBoxWorld/BentoBox/issues/1548
2020-12-27 18:11:55 -08:00
tastybento
e5485dcbbc Fixes history log in databases.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1624
2020-12-27 11:48:32 -08:00
tastybento
be40bd2c54 Fixes new island event casting bug 2020-12-27 11:43:37 -08:00
tastybento
999d196e8e
Event fix with deprecation (#1623)
* Break out events and add individual handlers

https://github.com/BentoBoxWorld/BentoBox/issues/1613

* Corrected AddonEvents to have proper static handlers

* Made constructors protected.

Abstract classes should not have public constructors. Constructors of
abstract classes can only be called in constructors of their subclasses.
So there is no point in making them public. The protected modifier
should be enough.
2020-12-27 10:35:49 -08:00
tastybento
2190295c68 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2020-12-25 17:36:26 -08:00
tastybento
0e7ab3438e Added deprecation JavaDoc to events that are moving to own class 2020-12-25 17:36:16 -08:00
tastybento
d774124d89 Fixed/removed tests
These are no longer relevant as this function is now in the
PlayersManager and tested there.
2020-12-24 21:56:02 -08:00
tastybento
c7d7871f94 Player clean up
Moved per removal to PlayersManager

Added cleanup to IslandResetCommand

Added test class for clean up method.
2020-12-24 15:30:52 -08:00
tastybento
372f149f3d Remove code duplication between kick and leave command 2020-12-24 14:24:42 -08:00
tastybento
f5b2b136e9 Mark BentoBoxEvent getHandler methods as deprecated.
See https://github.com/BentoBoxWorld/BentoBox/pull/1615
2020-12-24 12:06:30 -08:00
tastybento
aec2e115eb Removes tamed animal ownership on new island
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1450
2020-12-24 10:15:14 -08:00
tastybento
267387af7a Fix copy-n-paste javadoc error 2020-12-24 10:09:36 -08:00
tastybento
065ddfb93f Simplified newIsland method in preparation for additional user cleaning 2020-12-24 09:35:43 -08:00
tastybento
dcbc1c1839 Added JavaDoc to checkTeams method 2020-12-24 09:14:21 -08:00
tastybento
98697b1686
Delete experiment (#1589)
* Try loading adjacent chunks, but too slow.

* NMS void delete

* Revert the extra chunk in IslandDeletion.

That was for another deletion approach.

* Added NMS abstraction.

* Debug

* Clearer code.

* Clarify exceptions
2020-12-19 10:29:26 -08:00
tastybento
9570f342ee
Add try catch around second stage plugin loading task. (#1609)
https://github.com/BentoBoxWorld/BentoBox/issues/1281
2020-12-19 10:28:46 -08:00
BONNe
0e4b3b40fa
Persistent entities should never be removed. (#1608)
* Persistent entities should never be removed.

There is no valid reason why BentoBox should remove the Persistent entity. Otherwise, what is the point of being persistent if someone can just remove it?

* Changes which mobs can be removed outside island

Protect renamed and persistent entities from being removed if they wander outside island bounds.
Except for animals, as they cannot be removed only if they are renamed.
2020-12-19 08:56:29 -08:00
tastybento
e608a95442 Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1602 2020-12-14 19:08:04 -08:00
Gabriele C
b74eeb95d8
Prevent save task overlaps (#1588) 2020-11-27 10:21:39 -08:00
Gabriele C
232d9097cf
Limit island/player saves per tick (#1578)
* limit island/player saves per tick

* Whoops

* 20 players/islands per tick should be enough

20 players/islands * 20 tick * 60 seconds * 5 minutes (default interval) = 120000 saved entries :)
2020-11-27 10:12:10 -08:00
tastybento
2e00602371 Remove updateInventory from noGo
There was not specific reason why this was being done and in testing, I
cannot find a reason why it is needed (yet) so I am removing it due to
the lag reported in
https://github.com/BentoBoxWorld/BentoBox/issues/1580
2020-11-26 18:37:48 -08:00
tastybento
2cb1e7c306 Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1579 2020-11-26 18:05:26 -08:00
tastybento
caed56f16e Load initial tp location async
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1584
2020-11-26 17:25:17 -08:00
BONNe
93d7fad860
Fixed parsing [gamemode] in placeholders (#1574) 2020-11-17 00:58:58 +01:00
tastybento
5321e1dda6 Prevent exposing vanished players with expel
https://github.com/BentoBoxWorld/BentoBox/issues/1573
2020-11-14 11:59:38 -08:00
tastybento
dd3622cd23 Rank check was in the wrong place so the no-arg command could be blocked 2020-11-14 11:10:33 -08:00
tastybento
79f6600fd2 Fixed tests and other small code smells 2020-11-08 16:48:08 -08:00
tastybento
1ec886472d Add biome support to blueprints.
https://github.com/BentoBoxWorld/BentoBox/issues/1571
2020-11-08 12:24:40 -08:00
BONNe
3581537537
Fixes some errors with HeadGetter (#1569)
* Add getKey and getValue for Pair calls for nicer access.

* Fixes ConcurrentModificationException in HeadGetter.
Fixes an issue when elements with the same name were overwritten by HeadGetter.
2020-11-08 11:23:24 -08:00
tastybento
1d4fd435a9 Added World TNT Damage Flag
Enables admins to decide whether TNT should damage outside of island
boundaries

https://github.com/BentoBoxWorld/BentoBox/issues/1562
2020-11-08 10:43:15 -08:00
YellowZaki
1a9f9e7b21
Added IslandExitEvent#getToIsland() and IslandEnterEvent#getFromIsland() (#1557)
* Added IslandExitEvent#getToIsland() and IslandEnterEvent#getFromIsland()

* Added IslandEventBuilder#rawEvent(Event) and IslandBaseEvent#getRawEvent()
2020-11-07 21:54:53 -08:00
tastybento
66a28b420a Fix new bundle creation error.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1561
2020-11-07 18:58:24 -08:00
tastybento
a7747b560b Add clean up for duplicate island ownership.
https://github.com/BentoBoxWorld/BentoBox/issues/1568
2020-11-07 16:08:54 -08:00
tastybento
89ee2b4262 Add server compatibility for 1.16.4 2020-11-07 11:35:29 -08:00
tastybento
916ba5d999 Uses a different method to fix the database.
https://github.com/BentoBoxWorld/BentoBox/issues/1556
2020-11-01 17:29:18 -08:00
tastybento
774b57b168 Added an admin fix command to fix cross-island ownership.
https://github.com/BentoBoxWorld/BentoBox/issues/1556
2020-11-01 15:53:52 -08:00
tastybento
ba903bdaca
Stops async db saving on shutdown. Adds JSON backup. (#1558)
* Stops async db saving on shutdown. Adds JSON backup.

* Fixes test failures and added Util class tests.
2020-11-01 13:58:29 -08:00
tastybento
f7f36179d3 Switch removeIf check
May help with https://github.com/BentoBoxWorld/BentoBox/issues/1550

I cannot understand why an CME is happening with removeIf. It should not
be possible.
2020-10-26 17:11:52 -07:00
tastybento
4a24364f81 Collect water wasn't overriding bucket usage for visitors
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1545
2020-10-12 15:45:38 -07:00
tastybento
f09ea1ffef Adds PreCreateEvent for API 2020-10-12 14:07:47 -07:00
tastybento
b024d0cc8b Switch to use Util method to reset player health.
Reduces duplicate code.
2020-10-11 09:18:53 -07:00
tastybento
ae1db70ff6 Fixes max heath by using player attribute
Players may no longer have a max health of 20.

https://github.com/BentoBoxWorld/BentoBox/issues/1544
2020-10-11 09:11:41 -07:00
Ikkino
5f5fe4a9c9
Adding world specification on methods of Vault Hook (#1448) 2020-10-11 07:38:53 -07:00
tastybento
fad1fc84da
Enables nether and end teleporting even if they are disabled by server (#1539)
* Enables nether and end teleporting even if they are disabled by server

https://github.com/BentoBoxWorld/BentoBox/issues/1527

* Fix PortalTeleportationListener tests

* Revert Travis.yml
2020-10-11 07:38:21 -07:00
tastybento
a07676ac05 Allow default blueprint bundle to have a friendly name change in the GUI
https://github.com/BentoBoxWorld/BentoBox/issues/1543
2020-10-09 14:51:21 -07:00
BONNe
6b852e0368
Fix an issue when CommandEvents were never called (#1542)
Somebody forgot to actually call the this event.
2020-10-09 07:36:21 -07:00
BONNe
f25e4d9c8d
Add addon version in enabling statement (#1541)
This is one of the missing information in log files. It would be useful to see the version on enabling status.
2020-10-09 07:33:19 -07:00
tastybento
fb53ac17e1
Inserts gamemode name into placeholders before passing to PaceholderAPI (#1514)
https://github.com/BentoBoxWorld/BentoBox/issues/1512

Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-10-08 17:47:54 -07:00
BONNe
6cd9339652
Fixes a bug with cache. (#1533)
It was not possible to set it to unlimited time due to my poor programming and logic skills. 
It also was contradicting to config comments.
2020-10-08 17:47:17 -07:00
tastybento
6f1aceee40 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2020-10-08 16:04:11 -07:00
tastybento
9f1d610dfd Fix renaming of database tables.
https://github.com/BentoBoxWorld/BentoBox/issues/1536
2020-10-08 16:03:57 -07:00
tastybento
77d2535e39 Prevent placing of glowstone in spawn anchors.
https://github.com/BentoBoxWorld/BentoBox/issues/1534
2020-10-04 17:10:11 -07:00
tastybento
4609881542 Citizen NPCs are not island visitors so do not protect them.
https://github.com/BentoBoxWorld/BentoBox/issues/1518
2020-09-18 13:45:39 -07:00
tastybento
5a5435d815 Let Citizens handle its own PVP protection.
https://github.com/BentoBoxWorld/BentoBox/issues/1518
2020-09-17 08:09:39 -07:00
tastybento
edacd33fd1 log stack trace 2020-09-13 11:29:53 -07:00
tastybento
a06987ccf4 Adds ability to write key values back to the event from plugins 2020-09-13 10:53:35 -07:00
tastybento
54bc554763 Code smell reduction 2020-09-12 16:55:54 -07:00
tastybento
bc0e8a9df4 Added GeoMobLimitTab test class 2020-09-12 16:44:00 -07:00
tastybento
b6c30fc466 Ignore NPCs for island lock
https://github.com/BentoBoxWorld/BentoBox/issues/1518
2020-09-12 15:52:17 -07:00
tastybento
78876926ba Use replace because it is not a regex 2020-09-12 15:47:40 -07:00
tastybento
0b042aa1fc Added 1.16.3 compatibility. 2020-09-10 18:54:47 -07:00
tastybento
2a3ac0bd3b
Handles placeholder reloading. (#1503)
https://github.com/BentoBoxWorld/BentoBox/issues/1502
2020-09-10 18:36:41 -07:00
tastybento
a436d99315 Use constant for "en-US" 2020-09-07 10:01:24 -07:00
tastybento
39c3b3043a Uses constant for "protection.flags.ENTER_EXIT_MESSAGES.island" 2020-09-07 09:59:31 -07:00
tastybento
f4a4b6053a Simplified safe check, removed debug. 2020-09-06 16:20:48 -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
a6d1acf59d Only check island distances for known worlds.
BentoBox would refuse to start if islands from worlds unknown to the
server were in the database. e.g. a CaveBlock island where the CaveBlock
addon had been removed.
2020-09-06 15:31:30 -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