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
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
c05f2a3c15
Fixes default biome setting on island delete.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1513
2020-08-31 18:40:30 -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
Paul Baird
01c2c30621
Added support to hide Vanished players from Teams ( #1499 )
...
* Rework to see if player is online
* Maybe fix & disable tests
* Fix pom.xml
* Fix pom.xml
* Re-add lines to pom.xml
* Check if isn't trusted
* Possibly disable testing, disable last online for teams
* Actually disable testing now?
* Add back dependencies
* Added trusted-layout
* Added individual translation for Coop
* Rebase pom.xml
* Formatted code correctly
* Use correct methods
* Possible fix for always offline
* Another test
* Solved always offline issue
* Cleaned up code & adjusted locales
2020-08-23 14:52:06 -07:00
VozikCZE
eb531c93f7
Small fix in cs.yml ( #1500 )
2020-08-23 21:52:33 +02:00
gitlocalize-app[bot]
03960e876e
Korean translation ( #1475 )
...
Co-authored-by: chickiyeah <ruddls030@naver.com>
2020-08-23 17:13:48 +02:00
tastybento
cd32f9e799
Added 1.16.2 compatibility flag.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1498
2020-08-22 08:44:19 -07:00
tastybento
c2375e7f50
Paginates geo limited mob settings.
2020-08-20 19:33:42 -07:00
tastybento
e8d5e66514
Paginate the mob limiter settings page
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1451
2020-08-20 19:03:33 -07:00
Florian CUNY
d131c69c9c
Added contributors ("The BentoBoxWorld Community") in plugin.yml
2020-08-11 13:45:23 +02: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
22724077bb
Remove range instead of add it.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1466
2020-07-24 14:23:05 -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
ab6799c159
Remove fancy error printing. Just print raw error.
2020-07-16 12:32:51 -07:00
tastybento
95b0250ece
Fixes infinite loop particle bug with blueprint copy/paste
...
Code analysis suggested this line could be simplified, but it resulted
in an infinite loop call to itself: spawnParticle(particle, dustOptions,
(double) x, (double) y, (double) z);
2020-07-15 19:54:56 -07:00
tastybento
e364094a4f
This stops BentoBox if there is an island distance mismatch.
2020-07-15 18:09:32 -07:00
Florian CUNY
3550ab9e5b
Release 1.14.1
2020-07-13 22:54:16 +02:00
Florian CUNY
41c3d554f5
Added javadoc since tags in HeadGetter.java
2020-07-13 22:37:08 +02:00
Florian CUNY
85a6daf366
Added '(Right/Left) Click to open/toggle/cycle' in flags' description layouts
...
And tweaked colors of the "click-to-switch" message for the mode button in the Settings Panel
2020-07-12 10:58:38 +02:00
BONNe
fa259611fe
Rework PlayerHead Getter. ( #1446 )
...
* Rework PlayerHead Getter.
Generate player head based on WebAPI (as it is faster) and GameProfile texture (require NMS).
Cache is suitable for storing into file format.
Add ability to add custom HeadCache object into local cache.
Add ability to modify cache keeping length.
Add ability to keep all, or just a single element into cache until server restart.
* Address issues/improvements suggested from review.
- config will store time in minutes.
- default value will be 1h.
2020-07-11 14:13:32 +02:00
tastybento
0df69f1498
Fixes issue with Postgres DB
...
Refactor code around using quotes for uniqueId's. It's required for
MYSQL but not for SQLITE or POSTGRESQL.
https://github.com/BentoBoxWorld/BentoBox/issues/1449
2020-07-10 22:18:47 -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
93d03d3315
Release 1.14.0
2020-07-07 22:16:47 +02:00
tastybento
0126c44a06
Removed redundant code in TabbedPanel
2020-07-04 17:17:35 -07:00
tastybento
83c0713ddf
Fixes a bug where not items were shown in settings
...
The addition of a bottom control bar to the tab was covering up the
panel items so 9 items would be missing. This makes it so 36 items show
instead of 45.
2020-07-04 13:47:16 -07: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
35224ed664
Handles PIG_ZOMBIE to ZOMBIFIED_PIGLIN compatibility
...
When reading config files, PIG_ZOMBIE will be converted to
ZOMBIFIED_PIGLIN if server is 1.16.1+. If downgrading, it'll convert
down to PIG_ZOMBIE.
2020-07-03 12:36:24 -07: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
bf36ec5dd8
Enable backwards compatibility.
...
Adds protection for bee breeding too.
2020-06-30 15:50:12 -07:00
Florian CUNY
2773c4a104
Added BREAK_HOPPERS protection flag
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1331
2020-06-29 17:44:13 +02: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
a1a3913fe7
Refactor to use computerIfAbsent instead of putIfAbsent
2020-06-28 09:16:05 -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
Florian CUNY
51c69f34af
Added some basic javadoc header to HeadCache
2020-06-26 17:15:15 +02:00
tastybento
4e56ff8c92
Keeps heads for 3 minutes in cache
...
It appears that heads are being "forgotten" by the server after a few
minutes (not sure how long) so caching forever doesn't help. This causes
blocking calls when the head is set.
https://github.com/BentoBoxWorld/Level/issues/159
2020-06-26 07:47:19 -07:00
Florian CUNY
0e3535d0cc
Added language selection using command (as alternative to GUI)
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1411
The IslandLanguageCommand now have tab-completion.
Added LocalesManager#isLocaleAvailable(Locale).
2020-06-22 18:52:16 +02:00
Florian CUNY
360a417a4a
Tweaked spanish translation to disambiguate "roca de base" into "bedrock"
2020-06-22 10:15:09 +02:00
tastybento
1ebae9b1a4
Uses completablefutures to paste islands sequentially ( #1410 )
...
* Uses completablefutures to paste islands sequentially
* Removes debug
2020-06-22 00:01:30 +02:00
tastybento
9f5fb590e0
Fixes test broken by old flag name being used
...
cbbd361b03
2020-06-21 13:41:42 -07:00
Florian CUNY
cffa294f0e
Removed credits for non-installed addons
...
It causes a lot of unnecessary GitHub API calls which can cause rate-limits.
2020-06-21 17:51:19 +02:00
Florian CUNY
ad0b01fbc8
Added javadoc about deprecated flags on Flags#values
2020-06-21 17:47:48 +02: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
Florian CUNY
aa9a4d16f1
Added ability to replace [name] by the island owner's name when pasting an entity from a blueprint
2020-06-17 21:28:00 +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
2cefdcca3f
Adds stack trace to onLoad if there's a LinkageError ( #1399 )
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1362
There was already one for onEnable. This just adds the same to onLoad,
which was missing.
2020-06-14 11:13:15 +02: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
Florian CUNY
9a7ded8136
Fixed typo in en-US.yml
2020-06-06 10:46:16 +02:00
tastybento
593ee69c5b
Prevents fires from lightning if FIRE_IGNITE is not set for visitors
...
https://github.com/BentoBoxWorld/BentoBox/issues/1383
2020-06-02 18:28:56 -07:00
Florian CUNY
73ab103098
Fixed some code smells
2020-06-02 14:22:46 +02:00
Florian CUNY
5d08f15d5f
Removed Schem to Blueprint conversion
...
It was introduced in BentoBox 1.5.0 and bStats shows that all the servers are using BentoBox 1.5.3+. We can therefore safely remove this from BentoBox.
2020-06-02 14:01:35 +02:00
Florian CUNY
2e04619cd9
Got rid of a null-check for blueprints' names
...
Blueprints' names can no longer be null
2020-06-02 10:29:05 +02:00
Florian CUNY
f4e3eda98c
Removed deprecated (as of 1.6.0) SafeSpotTeleport.Builder.overrideGamemode()
2020-06-02 10:25:40 +02: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
a6d6895676
Fixes admin blueprint delete command
...
https://github.com/BentoBoxWorld/BentoBox/issues/1382
2020-06-01 12:15:49 -07:00
tastybento
9df54ff07f
Show unknown versions ( #1379 )
...
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-05-30 21:59:16 +02:00
tastybento
6fa89b0b4d
Uses Locale.ENGLISH for toLowerCase and toUpperCase ( #1378 )
...
The locale should be explicitly declared otherwise the default locale of
the operating system will be used, which may result in unexpected bugs.
2020-05-30 21:52:05 +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
0e10563ae6
Explicitly use UTF-8 when scanning file for YAML comments
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1372
2020-05-27 16:32:20 -07:00
tastybento
7b28c67db0
Remove slash from front of perform command
...
https://github.com/BentoBoxWorld/BentoBox/issues/1369
2020-05-26 12:31:56 -07:00
tastybento
502aaa87a4
Enables game modes addons first ( #1368 )
2020-05-26 10:04:53 +02: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
Florian CUNY
b9915dba98
Renamed a variable in WebManager to make it less confusing
2020-05-19 17:56:10 +02:00
Florian CUNY
4209afaf20
Fixed Flags being sorted due to their text color
...
Colors are now stripped, so that all Flags are properly alphabetically sorted
2020-05-19 17:40:51 +02:00
Florian CUNY
7dc39946f1
Improved paging layout for TabbedPanels
2020-05-19 17:29:45 +02:00
tastybento
64b5675bf0
Adds %gamemode_owns_island% placeholder
...
https://github.com/BentoBoxWorld/BentoBox/issues/1355
2020-05-15 17:53:22 -07:00
tastybento
48310e858f
Add softdepend for BsbMongo
2020-05-15 08:07:39 -07:00
tastybento
0283d5445c
Improved creeper damage and creeper griefing protection locale.
2020-05-14 16:32:59 -07:00
tastybento
5e1f095b9d
Use try-with-resources to close ResultSet in SQLite handler.
2020-05-13 18:02:06 -07:00
tastybento
72bbac2594
Remove unused import
2020-05-13 17:58:02 -07:00
Florian CUNY
7b476d6bd8
Play a sound when resetting the island flags to default
2020-05-13 18:18:46 +02:00
Florian CUNY
f66fafd0aa
Added config option to define the item to use to fill gaps in Panels
...
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1344
Addons should also use this setting as much as possible when dealing with Panels
2020-05-13 18:06:15 +02:00
Florian CUNY
321637b9b9
Added comment in config for close-on-click-outside
2020-05-13 17:46:32 +02:00
Florian CUNY
805b376de3
Fixed glass panes in header not having an "empty" name
...
Relates to https://github.com/BentoBoxWorld/BentoBox/issues/1344
2020-05-13 17:36:19 +02:00
Florian CUNY
32e174daed
Fixed a small code smell in LocalesManager
2020-05-13 16:44:22 +02:00
Florian CUNY
ee06a55d02
Better handling of InvalidConfigurationExceptions when updating locale files
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1290
2020-05-13 16:41:05 +02:00
Florian CUNY
783a68a757
Call the TeamSetownerEvent before making the change in AdminTeamSetownerCommand
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1349
Also call one of the two "RankChange" event before the change (not doing the latter was a bug, actually).
2020-05-13 16:17:29 +02: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
de124ab182
Call a RankChange event for the old island owner in Setowner commands
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1342
2020-05-09 11:39:17 +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
11510b15fc
Add addon top level commands to BentoBox help
...
This enables admins to see which top level commands have been registered
under BentoBox. As these commands can be defined in config files, it is
not always obvious which one should be used so this help will be useful.
2020-05-08 14:19:50 -07: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
2c004ce504
Clear user cache on login.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1341
Server calls PlayerTeleportEvent if player is mounted on quit, which
inserts player back into cache. By clearing the cache on login, the
stale player object will be cleared.
2020-05-05 16:26:51 -07:00
tastybento
4a3c9ad8ae
Added null checking for world when changing worlds
...
https://github.com/BentoBoxWorld/BentoBox/issues/1336
2020-05-02 18:54:06 -07:00
tastybento
304867c1f8
Prevents duplicate addon loading.
...
https://github.com/BentoBoxWorld/BentoBox/issues/1339
2020-05-02 18:51:32 -07:00
tastybento
e39db644b9
Adds better checking for on-join commands
...
https://github.com/BentoBoxWorld/BSkyBlock/issues/315
2020-05-02 16:57:42 -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
tastybento
3b50b01eef
SafeSpotTeleport was setting home location async
...
This could cause a race condition setting home to null.
If home was null during a new island creation, then the new island tasks
would not be run because SafeSpotTeleport was not given the runnable.
May be related to:
https://github.com/BentoBoxWorld/BSkyBlock/issues/312
2020-05-02 14:11:37 -07:00
Florian CUNY
31de515b3e
Changed the Setting Flags category's icon to COMPARATOR
2020-05-02 14:45:20 +02:00
tastybento
f0564b7c78
Puts a null check on player UUID
...
It's possible for fake players to have null UUIDs apparently. So this
check avoids an NPE.
2020-05-01 20:48:04 -07:00
Florian CUNY
c4e28b7937
Release 1.13.1
2020-05-02 02:13:45 +02:00
tastybento
7bfbfe78a3
Return true if database save executed.
...
Fixes bug where if no change was made it was reporting an error.
2020-05-02 02:13:45 +02:00