Commit Graph

2194 Commits

Author SHA1 Message Date
tastybento
f67baf6501 Add protection for firework explosions from crossbows.
https://github.com/BentoBoxWorld/BentoBox/issues/1027
2019-11-14 17:44:56 -08:00
tastybento
c9b0c74d08
Paper lib (#1026)
* Remove unused imports

* Implements PaperLib within bentobox

* Added PaperLib methods to Util for addons to call

* Uses PaperLib for island deletion

* Point to https://github.com/BentoBoxWorld/MVdWPlaceholderAPI in POM
2019-11-13 15:10:33 -08:00
tastybento
e2fd5555cf Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2019-11-09 14:51:12 -08:00
Florian CUNY
a1b7df19c7 Added WorldSettings options to create island on first login
Implements https://github.com/BentoBoxWorld/BentoBox/issues/889
2019-11-09 17:50:27 +01:00
Florian CUNY
e5646c72cd Removed unneeded #isKnown() check in onJoin listener
Since the player is added to the player cache right before the check, the code is always executed.
2019-11-09 11:41:48 +01:00
tastybento
8dabdf46fe Simplify code in SafeSpotTeleport 2019-11-08 17:12:26 -08:00
tastybento
664040837d Uses replace instead of replaceAll as 1st param is not regex 2019-11-08 17:06:20 -08:00
tastybento
7bfc392bb1 Added to ITEM_FRAME flag description
https://github.com/BentoBoxWorld/BentoBox/issues/1023
2019-11-07 13:01:21 -08:00
tastybento
d3e35a9ecb Fixes item frame protection by flag. Also affects armor stands
https://github.com/BentoBoxWorld/BentoBox/issues/1023
2019-11-06 17:43:30 -08:00
tastybento
21e75c645e Return to previous code for BlockInterationListener 2019-11-06 08:32:06 -08:00
tastybento
86e39a801e Fixes bug with null flags
This class is called before all the flags are initialized so it cannot
reference them directly. This fixes the situation by using Strings, but
it can be improved.
2019-11-06 08:03:22 -08:00
tastybento
21916b5a59 Remove code smells. 2019-11-05 23:11:56 -08:00
tastybento
ef67079831 Fix for tests.
Note Flags cannot be used in class definitions without becoming nulls.
They have to be done in the constructor.
2019-11-05 22:36:28 -08:00
tastybento
c56b9bec18 Refactorer BlockInteractionListener and added test class
May fix:

https://github.com/BentoBoxWorld/BentoBox/issues/1023
2019-11-05 21:45:26 -08:00
tastybento
77a3797d3b Added EntityInteractListener test class & fixed bug
https://github.com/BentoBoxWorld/BentoBox/issues/1012
2019-11-05 18:26:17 -08:00
tastybento
e607b2b012 Fixes name tag check for villagers
https://github.com/BentoBoxWorld/BentoBox/issues/1012
2019-11-05 15:53:52 -08:00
tastybento
80d87d19f9 Include team members when sending banned players back to their island.
https://github.com/BentoBoxWorld/BentoBox/issues/1017
2019-11-05 09:49:11 -08:00
tastybento
25ad177aca Translate colors for blueprint descriptions.
https://github.com/BentoBoxWorld/BSkyBlock/issues/213
2019-11-02 17:09:47 -07:00
tastybento
c2f2be61c3 Translate alternate colors codes for BBundle descriptions 2019-11-02 17:04:32 -07:00
tastybento
1ab7222ca0 Log error if commands cannot be run on leaving. 2019-11-02 17:03:55 -07:00
tastybento
0324d3e123 Remove code smell on MobSpawnListener 2019-10-30 18:56:12 -07:00
tastybento
de2f2a22ce Addresses new types of creature spawning for 1.14.x servers
https://github.com/BentoBoxWorld/BentoBox/issues/1020
2019-10-30 14:16:47 -07:00
tastybento
44a7f26c04 Makes log a warning for players who cannot be teleported home. 2019-10-30 14:16:26 -07:00
Florian CUNY
5efbacb80f Fixed invalidly-named 'commands.island.expel.cannot-expel-member' in en-US 2019-10-30 14:53:13 +01:00
Florian CUNY
ca6f344c70 Improved the configuration file introduction 2019-10-30 14:15:33 +01:00
tastybento
b9a04bcf57 Added protection around addon onDisable().
https://github.com/BentoBoxWorld/BentoBox/issues/1018
2019-10-29 17:52:24 -07:00
tastybento
9ff2eda576 Avoid setting banner pattern if none exist (null)
https://github.com/BentoBoxWorld/BentoBox/issues/1016
2019-10-29 17:44:45 -07:00
Florian CUNY
6607060b99 Added a "reset all the settings" button to the player Settings Panel
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1011
2019-10-28 17:42:43 +01:00
Florian CUNY
5ef74bd0f4 Fixed some code smells 2019-10-28 10:04:44 +01:00
tastybento
a27f54a6f7 Fixes tests for IslandTeamCommand 2019-10-27 13:26:22 -07:00
Florian CUNY
6d3e5914a9 Added white color to the "Next Page" and "Previous Page" texts in en-US 2019-10-27 13:46:52 +01:00
Florian CUNY
85b45df13b Improved the IslandTeamCommand: added last joined timestamp for offline team members
Redid the whole layout - it looks much nicer now!
Implements https://github.com/BentoBoxWorld/BentoBox/issues/997
2019-10-27 13:35:29 +01:00
tastybento
1304f8bace Makes SQLite deletion of non-existent items fail silently
Adds JavaDoc to make this clear.

https://github.com/BentoBoxWorld/BentoBox/issues/1010
2019-10-26 11:56:12 -07:00
tastybento
d5d6f20bb9 Remove imports 2019-10-25 17:31:24 -07:00
Florian CUNY
ca6ab33898 Added javadoc since tags for the newly added methods in PanelItem and builder
Also improved the #isPlayerHead() methods
2019-10-24 14:12:16 +02:00
YellowZaki
87ea48443f Added ability to have player heads with custom name (#1007)
* Added new attribute playerHeadName

* Added method PanelItem#getPlayerHeadName() and PanelItemBuilder#getPlayerHeadName()

* Added playerHeadName attribute

* getPlayerHeadName instead of getName
2019-10-24 14:00:14 +02:00
Florian CUNY
551975d6c9 Added Credits GUI for addons and BentoBox
Implements https://github.com/BentoBoxWorld/BentoBox/issues/993
2019-10-24 13:56:06 +02:00
Florian CUNY
856572941e Removed no longer needed allow-nether and allow-end warnings
Fixed https://github.com/BentoBoxWorld/BentoBox/issues/977
2019-10-22 09:45:37 +02:00
Florian CUNY
6ed1212e47
Improved the island creation feedback messages
Based on advice from @wellnesscookie, I made these messages feel more welcoming to the user.
2019-10-21 23:07:03 +02:00
Florian CUNY
8692685822 Improved user feedback when pasting (creation/reset) an island
Implements https://github.com/BentoBoxWorld/BentoBox/issues/996
2019-10-21 17:55:35 +02:00
Florian CUNY
ba35d7c062 Simplified methods in BlueprintPaster
There wasn't the need for that many parameters in each method.
2019-10-21 15:20:02 +02:00
NotMyFault
947f9fb997 Generalize protection messages (#1001)
Implements #1000
* Generalize protection flag messages and rewrite some entries

* Fix enchantment name
2019-10-20 20:18:51 +02:00
NotMyFault
df9b3f75dd Set the bentobox.version permission default value to op (#1004)
Fixes #1002
2019-10-20 18:11:16 +02:00
Florian CUNY
cc3d5f33cc Release 1.8.0 2019-10-20 15:15:18 +02:00
Florian CUNY
a904882726 Removed the long-deprecated Flags#TNT flag
It was deprecated as of 1.5.0.
2019-10-20 14:57:57 +02:00
Florian CUNY
4f297614a3 Fixed DYE signs protection not working on most recent 1.14 versions
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/999

I simply removed the server compatibility check right away, since we're expected to be full 1.14 as of a few versions already.
2019-10-20 14:56:54 +02:00
Florian CUNY
24d6b15340 Fixed MySQLDatabaseHandlerTest 2019-10-20 09:31:40 +02:00
Florian CUNY
3fd92f05e8 Improved error handling when establishing a MongoDB connection
Also improved the "error" messages when the credentials in the config are not correct.
2019-10-19 22:57:19 +02:00
tastybento
c67f1ac48b Made method calls more robust.
Calling these methods using a valid world but one that was not a
gameworld created an NPE. Now they respond with a default value.
2019-10-19 11:32:18 -07:00
tastybento
784988ca54 Test class cleanup. Use Bukkit direct calls instead of Bukkit.getServer 2019-10-18 19:33:24 -05:00