Commit Graph

1647 Commits

Author SHA1 Message Date
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
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
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
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
41c3d554f5 Added javadoc since tags in HeadGetter.java 2020-07-13 22:37:08 +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
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