Commit Graph

2696 Commits

Author SHA1 Message Date
Nassim
706bed62ec
Fixes potion splash pvp check (#1230)
Before this change, the entire potion splash would be cancelled if a single protected player would have been affected. Now, it will only remove the protected players themselves from the affected list.
2020-03-18 08:36:03 +01:00
Florian CUNY
c57b56f1f0
Fixed typo in updated playerPerServer bStats chart 2020-03-18 08:34:19 +01:00
NotMyFault
530a76b0a8
Improve bStats playersPerServer chart (#1225)
Updated bStats to 1.7.
Removed the "metrics" config option as it is now part of bStats's own `config.yml`.
2020-03-18 08:32:35 +01:00
tastybento
41e9bccc67 Load chunks async for every block pasted.
This loads every chunk async based on the block or entity being pasted.
2020-03-17 23:14:43 -07:00
tastybento
cf986925a0 Added protection in against a misnamed default language tag. 2020-03-17 23:13:38 -07:00
tastybento
5ca51f244e Sets spawn island protection ranges to be the max by default. 2020-03-17 18:20:02 -07:00
tastybento
3f4bd2418f Log error if hook is unsuccessful 2020-03-17 18:18:12 -07:00
tastybento
b67dbf0cb9 More robust method to unload classes.
In some situations there can be a concurrent modification error that
occurs when unloading the classes.
2020-03-13 19:47:26 -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
BONNe
f111bb9244
Implement option to enable SSL connection for MongoDB, MariaDB, MySQL and PostgreSQL connectors. (#1206) 2020-03-08 19:35:31 -07:00
tastybento
9f046be8f6 Fixes bug where any player can reset island settings.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1219
2020-03-08 19:32:49 -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
ca3fdf81e1 Preclear event was not using oldIsland argument. 2020-03-04 18:49:41 -08:00
tastybento
7d534d7617 Changed Island copy constructor to use getters to fix tests. 2020-03-04 18:48:35 -08:00
tastybento
f7a3da1502 Fixes IslandResetCommandTest failure 2020-03-04 18:47:37 -08:00
tastybento
aad7f1c482 Fixed IslandPrelearEvent so it is generated. 2020-03-04 17:33:36 -08:00
tastybento
a4362ce859 Addon saveResource overwriting was not working
The method saveResource can take a boolean as an argument to indicate
that the resource should be overwritten from the jar. This was not
working and is fixed.
2020-03-01 21:55:16 -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
Draww
1e71d67a9b
Added #getOldIsland() in island reset-related events (#1179)
* Reaching Old Island information in Island reset events

* Added javadocs since tags

* added javadoc since tags for new field/method in builder

Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-02-19 22:36:05 +01:00
Florian CUNY
795925f0cd Added %[gamemode]_deaths% placeholder
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1197
2020-02-19 00:58:36 +01:00
Florian CUNY
5cd2287d3a Added ConfigEntry#needsRestart()
It prints a comment in the config telling that the server must be restarted in order to take the changes into account.
2020-02-17 19:37:53 +01:00
gitlocalize-app[bot]
f620601caa
Updated Turkish translations (#1196)
Co-authored-by: Over_Brave <47111280+OverBrave@users.noreply.github.com>
2020-02-17 19:22:21 +01:00
Florian CUNY
4921056fc8 Added 'ver' alias to version commands 2020-02-17 17:40:04 +01:00
Florian CUNY
f3f81a52ea Merge remote-tracking branch 'origin/develop' into develop 2020-02-17 16:30:47 +01:00
gitlocalize-app[bot]
44f218a94d
Updated italian language (#1194)
Co-authored-by: Malachiel <xion87@users.noreply.github.com>
2020-02-17 16:25:06 +01:00
Florian CUNY
7bb65346b8 Added nullability annotations in LocalesManager 2020-02-16 14:33:22 +01:00
tastybento
06b5aac36f
Added LIMIT_MOBS flag (WORLD_SETTING) (#1155)
It provides a way to prevent selected EntityTypes from spawning at all.
Partially implements https://github.com/BentoBoxWorld/BentoBox/issues/1133
2020-02-16 13:12:32 +01:00
Florian CUNY
ada1909973 Increased declared Spigot API-version to 1.14 2020-02-15 13:49:54 +01:00
Florian CUNY
14e42dc9ad Version up 1.12.0 2020-02-15 11:36:21 +01:00
Florian CUNY
273893c227 Release 1.11.1 2020-02-15 11:15:33 +01:00
tastybento
295d985024 Removed unused import. 2020-02-14 08:13:20 -08:00
tastybento
77a2a7add5 Added exception catch for getClass in AddonsManager. 2020-02-14 08:12:49 -08:00
gitlocalize-app[bot]
8e994ffae9
French translation: added missing translations and improvements (#1189)
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-02-14 11:27:40 +01:00
Florian CUNY
835ffe12d8 Updated Spigot dependency to 1.15.2 2020-02-13 10:34:37 +01:00
Florian CUNY
1baea6f321 Excluded Google's GSON from shading 2020-02-13 10:34:11 +01:00
Florian CUNY
9abf65709d Added a message sent to all players on an island when PvP is toggled
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1081

Also removed the "protection.flags.PVP_OVERWORLD.active" message as it seemingly wasn't used.
2020-02-13 10:25:18 +01:00
Florian CUNY
f04a4fb522 Added a message if scooping obsidian into lava fails due to nearby obsidian blocks
Improved messages related to obsidian scooping
2020-02-12 20:31:06 +01: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
Florian CUNY
cc0d981e62 Added javadoc to BlueprintPaster's chunkLoadTime field 2020-02-11 16:02:39 +01:00
BONNe
8c1050a018
Remove Bank from ADDON.md as it is not available yet (#1167) 2020-02-11 15:57:53 +01:00
Florian CUNY
c5eb8ac7e7 Fixed some code smells 2020-02-11 11:28:15 +01:00
Florian CUNY
a240a6598d Fixed DYE protection being always called when interacting with sheeps 2020-02-11 11:14:55 +01:00