Commit Graph

3116 Commits

Author SHA1 Message Date
BONNe
16d5775c84
Fix "ugly" enchant name. (#1858)
Enchant names did not have a touch of Util#prettifyText code.
2021-09-22 19:35:22 -07:00
tastybento
690ea2f99e Prevent NPE possibility. 2021-09-19 18:36:37 -07:00
tastybento
29fa03976c Fix some code smells. 2021-09-19 18:29:19 -07:00
tastybento
f6f5b63110 Fix 2021-09-19 08:45:19 -07:00
tastybento
110a282deb Use isPlayer instead of null check.
Refactor code to be easier to understand.
2021-09-19 08:42:37 -07:00
tastybento
53f02ae686
Npe squashing (#1857)
* Fix hanging [uuid] in info.

* NPE checking

* Make getProtectionCenter nonNull

* More NPE fixes.

* Fix test

* Make getPlayer() and getOfflinePlayer() nonNull returns

This requires addons to not use null checks and instead us the isPlayer
or isOfflinePlayer methods.

* NPE blockers

* Deprecate CompositeCommand isPlayer method.

* Fix test
2021-09-18 17:59:32 -07:00
tastybento
68890eba00 Fix test 2021-09-18 12:25:14 -07:00
tastybento
8eac5070f0 Null check 2021-09-18 11:37:33 -07:00
tastybento
25fe86d812
Non null user methods (#1856)
* This makes some User methods non-null.

Instead of returning null, some methods will throw an error if they are
called on non-Players. This means code does not have to do null checks.

* Perform null check in method.
2021-09-18 11:22:28 -07:00
tastybento
8eb45e817c Code smell reduction 2021-09-18 08:15:15 -07:00
tastybento
3282b1bd12 Fix max-range bug 2021-09-18 08:14:43 -07:00
tastybento
d92632341d Fix JavaDoc for GameModeAddon inWorld method 2021-09-16 16:47:42 -07:00
tastybento
02a14cab6e
Requires nonNull parameters for User.instanceOf (#1852)
* Requires nonNull parameters for User.instanceOf

The only reason why User.instanceOf was returning a potential null was
if the parameter was null. Further absolutely no null checking was being
done, so the assumption was that User.instanceOf should never return a
null. This corrects the annotations and requires non-Null parameters.

* Remove null player test
2021-09-16 16:41:27 -07:00
tastybento
063fa97cf3
Removed the unused WorldEdit hook. (#1853)
If someone wants to add it back later they can, but this code does
nothing right now.
2021-09-13 19:46:10 -07:00
tastybento
bb7f124066 Avoid zipSlip vulnerability. 2021-09-12 21:53:26 -07:00
tastybento
0e744cae81 Added test class for Island. 2021-09-12 17:35:52 -07:00
tastybento
7271096ace Ensure maxEverProtectionRange is less than range.
https://github.com/BentoBoxWorld/BentoBox/issues/1851
2021-09-11 16:53:27 -07:00
tastybento
3dd9e973fb Island range perms could be 2x island distance
This could allow protection ranges to be much greater than the island
range and therefore overflow into adjacent islands.

https://github.com/BentoBoxWorld/BentoBox/issues/1851
2021-09-11 16:50:43 -07:00
tastybento
a6d70d6e90
Release 1.17.3 (#1827)
* Version 1.17.1

* Add homes command to default player options.

* Implements better online player counter. (#1791)

Current one is based on online player count when bStats sends data to the server.
This one will send data about amount of players who logged in the server.

* Add Boxed Gamemode to the list. (#1793)

* Add Bank addon (#1792)

* Add Holographic Displays as SoftDepend for AOneBlock (#1794)

* Custom date time format support for /<admin> info <player> (#1783)

Fixes #1720

* Parent/sub-flag support, split up and designate CONTAINER flag as parent flag (#1784)

* Split CONTAINER flag into multiple flags

CONTAINER split into
- CONTAINER (Chest/Minecart Chest)
- BARREL (Barrel)
- COMPOSTER (Composter)
- FLOWER_POT (Flower Pot)
- SHULKER_BOX (Shulker Box)
- TRAPPED_CHEST (Trapped Chest)

Fixes #1777

* Add subflag support

* Create container parent flag, chest subflag

* Remove extra string from when CHEST was CONTAINER

* Fix incorrect flag specified on fired event in IslandToggleClick

* Add missing world subflag event firing

* Remove extra import

* Add world setting flag for island visitors keep inventory (#1785)

* Implement 3 bar charts: addons, gamemodes, hooks (#1790)

BStats supports sending Bar chart data, however, it does not display it via their site directly.
It can be called manually, to view.

PieChart does not work very well for addons and hooks. BarChart however allows viewing each addon separately. 

This change allows sending data to the server about bar charts.

* Update action versions

* Declare distribution - adopt

* Cache Java Maven files differently.

* Try dependency for shade snapshot

* Add support for Minecraft 1.17.1

* Fix test by incrementing listener value check

There is a new listener now.

* Spigot 1.17.1

* Fix test for InventoryListener

* Re-order repos.

* Downgrading to 1.17 Spigot for now to enable building.

* Try pluginRespositories tag in POM to enable Github actions

* Version 1.17.2

* Add alternative Addon#getIslandManager method (#1797)

We have already done this to the main BentoBox class. But add-ons missed it, and it still has this weird structure: Addon#getIslands().getIslands().

This will just add the same method as it is already in BentoBox class.

* Fix bucket dupe (#1806)

Fix https://discord.com/channels/272499714048524288/310623455462686720/867790395442462760

* Removes unneeded exploit protection code for skulls (#1810)

This no longer seems to be required with 1.17.1

https://github.com/BentoBoxWorld/BSkyBlock/issues/430

* Quote filename of addon that cannot be loaded.

Provides a better understanding of which addon failed.

* Remove update when pasting chest.

* Version 1.17.3

* Java upgrade (#1814)

* Version 1.17.3

* Use Map.of and List.of instead of Immutable collections

* Replace explicit type argument.

* Replace lamba with method reference

* Replace condition with Objects.requireNonNullElseGet

* Use String.repeat

* Use new switch expressions

* Use instanceof patten variables which are more compact

* Fuse toUnmodifiableList into stream and return it.

* Remove unnecessary toString() calls.

* Remove unnecessary public

* Extracted common part from if

* Simplify conditional expressions

* Remove unused IOExceptions

* Cast to long

* Use Map.putAll

* Use primitives

* Clarify what is null or not

* Addedd @Serial annotation introduced with Java 14.

* Use Optional.isEmpty instead of !isPresent

* Use flatMap then ifPresent

* Just use Arrays.stream

* Swap map and filter for null with Objects::nonNull

* Use expression lambda

* Update JavaDoc version to 16

* Make spawn protection area square instead of circle.

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

* Improve ItemParser code. (#1821)

* Improve ItemParser code.

Add ability to parse text if Material is just a single string.
Add ability to parse player heads.

Add comments to the code.

* Fixes failing test.

* Added deprecation suppression.

* Added Pladdon to loadbefore.

* Prevent bucket duping when scooping obsidian Part 35

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

* Warns visitors that PVP is active if they teleport to an island

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

* Prevents repeated portaling when nether is disabled. (#1826)

* Prevents repeated portaling when nether is disabled.

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

* Fix test

* Hex pr 1820 (#1822)

* Fix @since for subflags. (#1831)

* Add Citizens to Softdepend list for NPC support (#1834)

* Fix color test.

* Set the default game mode when player makes island.

* Corrects JavaDocs link

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1838

* Update to 3.3.1-SNAPSHOT for shade plugin.

* Package info files for better JavaDocs (#1839)

* Added package info files for better JavaDocs

* Implement Flag icon changing via Locales file. (#1829)

This commit contains 2 changes:
- An option for Flag to use icon that is defined in locales after "icon" string.
- An option for ItemParser to parse icon or return given value, if parsing was not successful.

The flag option is not ideal, but it is simpler and easier to maintain then adding new config section where icons can be changed, as the locales file already contains a lot of info about each flag.

* Support glowing ink in blueprints (#1842)

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1837

* Panel template (#1841)

* Implement basic functionality to read data from template panels.

Create TemplateReader class that has static method which generates a PanelTemplateRecord. This record contains every necessary information from user created template file so everyone could use it to generate a functional panel.
These classes are just for reading templates and do not create actual panel.

* Add template clearing via bentobox reload command.

* Fix version command to show addon state.

* Fix German flag banner description.

Added more debug around error reporting.

* Make variables final if they can be. (#1843)

* Make variables final if they can be.

* Do not use final so that test can pass.

For testing, we use a trick to set this variable, but it won't work if
it is final. Right now, I'd like to keep the test.

* Static code analysis (#1844)

* StringBuffer (Java 5) may be declared as StringBuilder

* Replace map with flatMap

* Use instanceof naming

* No need to specify paramter types.

* Remove verbose code

* Fix JavaDoc issues

* Make internal class a record.

* Remove unused import.

* Make internal class a record.

* Made internal class a record.

* Removed unused import

* Fix typos

* Fix typo in test.

* Prevent home teleport when already home teleporting

Home teleporting is async so it's possible to issue the command multiple
times. This puts a flag in so that if a playeer is mid-teleport, then
issuing the go command will just repeat the text that the player is
teleporting home.

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

* Extracted island info from the Island object.

This is in preparation to have a different info for players than admins.

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

* Slimmer trimmer island info for players.

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

* Fixes coop and trust invites when team invites are not allowed

If a member or sub-owner has coop or trust invite capability and not
team invite rank, and confirm invites is on, then the invites were not
working.

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1452

* Remove invulnerable visitor protection if island is in PVP mode

We now have alerts if a player teleports to a PVP island.

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

* Fixes NPE in admin tp if nether or end worlds don't exist.

* Adds arrow sound when teleporting into a PVP island.

* Fix PVPListenerTest

Visitors are no longer invincible when on a PVP island.

* Fix test failure in InvincibleVisitorsListenerTest

* Minor JavaDoc correction.

* Go command was not working second time.

* Prevents console errors for missing icons in locale files.

* Fixes PlAddon disabling issue. (#1847)

There was a bug that did not unload PlAddon classes from JVM.
This change should fix it, as it will unload PlAddons via pluginLoader.

* Clear code - set worlds once on construction.

* Fixes a bug when Potion metadata was not applied (#1849)

There was missing potion meta data applying after creating an item. 
This affects both: Potions and Tipped arrows.

* Adds force-shown lines to the template. (#1850)

* Adds force-shown lines to the template.
Fixes a bug when template type was not selected correctly.
Changes "name" to "title" for border and background icons.

* Create TemplatedPanel and TemplatedPanelBuilder.

TemplatedPanel uses PanelTemplateRecord to create a functional panel.
Builder contains button builder callbacks that are used to create buttons with custom data.

* Use final vars for lambdas to avoid them changing async

The processes could run async, especially when chunk loading took a
while, so using fields that could change would result in blocks being
missed, especially in the nether or end. Switching to final vars avoids
this.

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1840

* Remove travis.

Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: Fredthedoggy <45927799+Fredthedoggy@users.noreply.github.com>
Co-authored-by: Justin <jstnf@users.noreply.github.com>
Co-authored-by: gecko10000 <60494179+levtey@users.noreply.github.com>
2021-09-10 18:39:16 -07:00
tastybento
b24c1fdc86 Use final vars for lambdas to avoid them changing async
The processes could run async, especially when chunk loading took a
while, so using fields that could change would result in blocks being
missed, especially in the nether or end. Switching to final vars avoids
this.

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1840
2021-09-08 21:08:15 -07:00
tastybento
6bff4c8132 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-09-08 20:26:56 -07:00
BONNe
9da329356a
Adds force-shown lines to the template. (#1850)
* Adds force-shown lines to the template.
Fixes a bug when template type was not selected correctly.
Changes "name" to "title" for border and background icons.

* Create TemplatedPanel and TemplatedPanelBuilder.

TemplatedPanel uses PanelTemplateRecord to create a functional panel.
Builder contains button builder callbacks that are used to create buttons with custom data.
2021-09-08 19:58:26 -07:00
BONNe
6bf3264ab5
Fixes a bug when Potion metadata was not applied (#1849)
There was missing potion meta data applying after creating an item. 
This affects both: Potions and Tipped arrows.
2021-09-08 19:57:27 -07:00
tastybento
3650863fa1 Clear code - set worlds once on construction. 2021-09-08 19:50:23 -07:00
BONNe
23e3554c4d
Fixes PlAddon disabling issue. (#1847)
There was a bug that did not unload PlAddon classes from JVM.
This change should fix it, as it will unload PlAddons via pluginLoader.
2021-09-05 17:28:49 -07:00
tastybento
938940199d Prevents console errors for missing icons in locale files. 2021-09-04 17:21:45 -07:00
tastybento
184c86bafe Go command was not working second time. 2021-09-04 17:21:25 -07:00
tastybento
0844e97530 Minor JavaDoc correction. 2021-09-04 15:43:51 -07:00
tastybento
7d7882c309 Adds arrow sound when teleporting into a PVP island. 2021-09-04 14:46:41 -07:00
tastybento
74ded5a187 Fixes NPE in admin tp if nether or end worlds don't exist. 2021-09-04 14:46:26 -07:00
tastybento
7621677c93 Remove invulnerable visitor protection if island is in PVP mode
We now have alerts if a player teleports to a PVP island.

https://github.com/BentoBoxWorld/BentoBox/issues/668
2021-09-04 14:36:47 -07:00
tastybento
23522a297f Fixes coop and trust invites when team invites are not allowed
If a member or sub-owner has coop or trust invite capability and not
team invite rank, and confirm invites is on, then the invites were not
working.

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1452
2021-09-04 13:47:44 -07:00
tastybento
0f7ca6ac60 Slimmer trimmer island info for players.
https://github.com/BentoBoxWorld/BentoBox/issues/1501
2021-09-04 10:02:37 -07:00
tastybento
547c266975 Extracted island info from the Island object.
This is in preparation to have a different info for players than admins.

https://github.com/BentoBoxWorld/BentoBox/issues/1501
2021-09-04 09:46:28 -07:00
tastybento
5bb12d53bd Prevent home teleport when already home teleporting
Home teleporting is async so it's possible to issue the command multiple
times. This puts a flag in so that if a playeer is mid-teleport, then
issuing the go command will just repeat the text that the player is
teleporting home.

https://github.com/BentoBoxWorld/BentoBox/issues/1637
2021-09-03 15:39:08 -07:00
tastybento
23857501f5
Static code analysis (#1844)
* StringBuffer (Java 5) may be declared as StringBuilder

* Replace map with flatMap

* Use instanceof naming

* No need to specify paramter types.

* Remove verbose code

* Fix JavaDoc issues

* Make internal class a record.

* Remove unused import.

* Make internal class a record.

* Made internal class a record.

* Removed unused import

* Fix typos

* Fix typo in test.
2021-08-29 18:17:38 -07:00
tastybento
9dc4ebc2d1
Make variables final if they can be. (#1843)
* Make variables final if they can be.

* Do not use final so that test can pass.

For testing, we use a trick to set this variable, but it won't work if
it is final. Right now, I'd like to keep the test.
2021-08-29 18:17:21 -07:00
tastybento
a9a7673ce8 Fix German flag banner description.
Added more debug around error reporting.
2021-08-29 15:04:20 -07:00
tastybento
44f06f2911 Fix version command to show addon state. 2021-08-29 14:56:54 -07:00
BONNe
2607256c06
Panel template (#1841)
* Implement basic functionality to read data from template panels.

Create TemplateReader class that has static method which generates a PanelTemplateRecord. This record contains every necessary information from user created template file so everyone could use it to generate a functional panel.
These classes are just for reading templates and do not create actual panel.

* Add template clearing via bentobox reload command.
2021-08-29 14:34:05 -07:00
tastybento
faf351fd59
Support glowing ink in blueprints (#1842)
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1837
2021-08-29 14:17:42 -07:00
BONNe
fa41abc062
Implement Flag icon changing via Locales file. (#1829)
This commit contains 2 changes:
- An option for Flag to use icon that is defined in locales after "icon" string.
- An option for ItemParser to parse icon or return given value, if parsing was not successful.

The flag option is not ideal, but it is simpler and easier to maintain then adding new config section where icons can be changed, as the locales file already contains a lot of info about each flag.
2021-08-29 13:30:45 -07:00
tastybento
0341515fc8
Package info files for better JavaDocs (#1839)
* Added package info files for better JavaDocs
2021-08-29 13:28:16 -07:00
tastybento
876ba91837 Set the default game mode when player makes island. 2021-08-23 19:40:46 -07:00
Fredthedoggy
705693f904
Add Citizens to Softdepend list for NPC support (#1834) 2021-08-21 11:43:42 +02:00
BONNe
c635647f85
Fix @since for subflags. (#1831) 2021-08-19 12:10:44 -07:00
tastybento
b906f5561a
Hex pr 1820 (#1822) 2021-08-19 12:09:23 -07:00
tastybento
e0d6e4df30
Merge branch 'master' into develop 2021-08-15 17:08:52 -07:00
tastybento
32638e7a87
Prevents repeated portaling when nether is disabled. (#1826)
* Prevents repeated portaling when nether is disabled.

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

* Fix test
2021-08-15 17:05:20 -07:00
tastybento
233c058bfe Warns visitors that PVP is active if they teleport to an island
https://github.com/BentoBoxWorld/BentoBox/issues/1780
2021-08-14 21:02:53 -07:00
tastybento
6b839d9c69 Prevent bucket duping when scooping obsidian Part 35
https://github.com/BentoBoxWorld/BentoBox/issues/1825
2021-08-14 16:23:13 -07:00
tastybento
7cadebc792 Added Pladdon to loadbefore. 2021-08-12 18:23:00 -07:00
tastybento
cc974c795f Added deprecation suppression. 2021-08-08 18:41:43 -07:00
BONNe
56a1fdb55a
Improve ItemParser code. (#1821)
* Improve ItemParser code.

Add ability to parse text if Material is just a single string.
Add ability to parse player heads.

Add comments to the code.

* Fixes failing test.
2021-08-08 10:05:14 -07:00
tastybento
cf8df9c2a8 Make spawn protection area square instead of circle.
https://github.com/BentoBoxWorld/BentoBox/issues/1819
2021-08-07 20:14:40 -07:00
tastybento
acfc001cd6
Java upgrade (#1814)
* Version 1.17.3

* Use Map.of and List.of instead of Immutable collections

* Replace explicit type argument.

* Replace lamba with method reference

* Replace condition with Objects.requireNonNullElseGet

* Use String.repeat

* Use new switch expressions

* Use instanceof patten variables which are more compact

* Fuse toUnmodifiableList into stream and return it.

* Remove unnecessary toString() calls.

* Remove unnecessary public

* Extracted common part from if

* Simplify conditional expressions

* Remove unused IOExceptions

* Cast to long

* Use Map.putAll

* Use primitives

* Clarify what is null or not

* Addedd @Serial annotation introduced with Java 14.

* Use Optional.isEmpty instead of !isPresent

* Use flatMap then ifPresent

* Just use Arrays.stream

* Swap map and filter for null with Objects::nonNull

* Use expression lambda
2021-07-31 08:48:26 -07:00
tastybento
1a7b7cdeb7
1.17.2 Release (#1812)
* Version 1.17.2

* Add alternative Addon#getIslandManager method (#1797)

We have already done this to the main BentoBox class. But add-ons missed it, and it still has this weird structure: Addon#getIslands().getIslands().

This will just add the same method as it is already in BentoBox class.

* Fix bucket dupe (#1806)

Fix https://discord.com/channels/272499714048524288/310623455462686720/867790395442462760

* Removes unneeded exploit protection code for skulls (#1810)

This no longer seems to be required with 1.17.1

https://github.com/BentoBoxWorld/BSkyBlock/issues/430

* Quote filename of addon that cannot be loaded.

Provides a better understanding of which addon failed.

* Remove update when pasting chest.

Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: Fredthedoggy <45927799+Fredthedoggy@users.noreply.github.com>
Co-authored-by: Justin <jstnf@users.noreply.github.com>
Co-authored-by: gecko10000 <60494179+levtey@users.noreply.github.com>
2021-07-25 10:52:03 -07:00
tastybento
b5725e7107 Remove update when pasting chest. 2021-07-25 10:23:03 -07:00
tastybento
6bac200ac0 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-07-25 09:32:05 -07:00
tastybento
3b136f0d68 Quote filename of addon that cannot be loaded.
Provides a better understanding of which addon failed.
2021-07-25 09:31:53 -07:00
tastybento
9b1d61659b
Removes unneeded exploit protection code for skulls (#1810)
This no longer seems to be required with 1.17.1

https://github.com/BentoBoxWorld/BSkyBlock/issues/430
2021-07-24 12:27:35 -07:00
gecko10000
21fed6ebfe
Fix bucket dupe (#1806)
Fix https://discord.com/channels/272499714048524288/310623455462686720/867790395442462760
2021-07-23 21:01:40 -07:00
BONNe
2044c73f05
Add alternative Addon#getIslandManager method (#1797)
We have already done this to the main BentoBox class. But add-ons missed it, and it still has this weird structure: Addon#getIslands().getIslands().

This will just add the same method as it is already in BentoBox class.
2021-07-23 19:32:00 -07:00
tastybento
376ac167e8
Version 1.17.1 (#1796)
* Version 1.17.1

* Add homes command to default player options.

* Implements better online player counter. (#1791)

Current one is based on online player count when bStats sends data to the server.
This one will send data about amount of players who logged in the server.

* Add Boxed Gamemode to the list. (#1793)

* Add Bank addon (#1792)

* Add Holographic Displays as SoftDepend for AOneBlock (#1794)

* Custom date time format support for /<admin> info <player> (#1783)

Fixes #1720

* Parent/sub-flag support, split up and designate CONTAINER flag as parent flag (#1784)

* Split CONTAINER flag into multiple flags

CONTAINER split into
- CONTAINER (Chest/Minecart Chest)
- BARREL (Barrel)
- COMPOSTER (Composter)
- FLOWER_POT (Flower Pot)
- SHULKER_BOX (Shulker Box)
- TRAPPED_CHEST (Trapped Chest)

Fixes #1777

* Add subflag support

* Create container parent flag, chest subflag

* Remove extra string from when CHEST was CONTAINER

* Fix incorrect flag specified on fired event in IslandToggleClick

* Add missing world subflag event firing

* Remove extra import

* Add world setting flag for island visitors keep inventory (#1785)

* Implement 3 bar charts: addons, gamemodes, hooks (#1790)

BStats supports sending Bar chart data, however, it does not display it via their site directly.
It can be called manually, to view.

PieChart does not work very well for addons and hooks. BarChart however allows viewing each addon separately. 

This change allows sending data to the server about bar charts.

* Update action versions

* Declare distribution - adopt

* Cache Java Maven files differently.

* Try dependency for shade snapshot

* Add support for Minecraft 1.17.1

* Fix test by incrementing listener value check

There is a new listener now.

* Spigot 1.17.1

* Fix test for InventoryListener

* Re-order repos.

* Downgrading to 1.17 Spigot for now to enable building.

* Try pluginRespositories tag in POM to enable Github actions

Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: Fredthedoggy <45927799+Fredthedoggy@users.noreply.github.com>
Co-authored-by: Justin <jstnf@users.noreply.github.com>
2021-07-10 18:27:57 -07:00
tastybento
3d1481fec5 Fix test for InventoryListener 2021-07-06 15:15:35 -07:00
tastybento
0845722150 Add support for Minecraft 1.17.1 2021-07-06 14:54:43 -07:00
BONNe
69f7b49469
Implement 3 bar charts: addons, gamemodes, hooks (#1790)
BStats supports sending Bar chart data, however, it does not display it via their site directly.
It can be called manually, to view.

PieChart does not work very well for addons and hooks. BarChart however allows viewing each addon separately. 

This change allows sending data to the server about bar charts.
2021-07-06 13:50:58 -07:00
Justin
759ba522f4
Add world setting flag for island visitors keep inventory (#1785) 2021-07-06 13:47:35 -07:00
Justin
0f7866a00b
Parent/sub-flag support, split up and designate CONTAINER flag as parent flag (#1784)
* Split CONTAINER flag into multiple flags

CONTAINER split into
- CONTAINER (Chest/Minecart Chest)
- BARREL (Barrel)
- COMPOSTER (Composter)
- FLOWER_POT (Flower Pot)
- SHULKER_BOX (Shulker Box)
- TRAPPED_CHEST (Trapped Chest)

Fixes #1777

* Add subflag support

* Create container parent flag, chest subflag

* Remove extra string from when CHEST was CONTAINER

* Fix incorrect flag specified on fired event in IslandToggleClick

* Add missing world subflag event firing

* Remove extra import
2021-07-06 13:41:23 -07:00
Justin
f88b8d4d6d
Custom date time format support for /<admin> info <player> (#1783)
Fixes #1720
2021-07-06 13:33:10 -07:00
Fredthedoggy
7de6563ece
Add Holographic Displays as SoftDepend for AOneBlock (#1794) 2021-07-06 13:30:54 -07:00
BONNe
3a1ec0a570
Implements better online player counter. (#1791)
Current one is based on online player count when bStats sends data to the server.
This one will send data about amount of players who logged in the server.
2021-07-06 15:22:44 +02:00
tastybento
19ddd73204 Add homes command to default player options. 2021-07-05 18:31:06 -07:00
tastybento
85a9e44c4d Revert "Revert "Revert "WIP prevent repeated teleports in portals"""
This reverts commit 17d9271369.
2021-06-27 16:55:14 -07:00
tastybento
17d9271369 Revert "Revert "WIP prevent repeated teleports in portals""
This reverts commit e0e1f2878c.
2021-06-27 16:53:08 -07:00
tastybento
e0e1f2878c Revert "WIP prevent repeated teleports in portals"
This reverts commit 2a5d8c14e3.
2021-06-20 16:29:24 -07:00
tastybento
a0f2f11499 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-06-20 12:19:09 -07:00
tastybento
c2e832095a
Minecraft 1.17 support (#1781)
* Java 16 preliminary branch.

This compiles, but junit tests fail all over because there is a lack of
Java 16 support right now.

* Use Java 16

* 1.17 WIP

* Require 1.17

* Fixes tests.

* WIP fixing tests

* Exclude maven from shading

* Try update snapshots to build action

* Try repo on command line

* Remove reference to shade plugin in dependencies
2021-06-20 12:18:10 -07:00
tastybento
2a5d8c14e3 WIP prevent repeated teleports in portals 2021-06-19 09:59:20 -07:00
gecko10000
7768cc69cc
Remove SLIME_SPLIT spawn reason from natural mob spawning flag (#1774) 2021-06-08 10:40:20 -07:00
Korinocho
a91203d439
Update es.yml (#1775)
* Update es.yml

Many syntax and semantic fixes

* Update es.yml
2021-06-08 10:39:34 -07:00
tastybento
044a0c5c0d Fix JavaDoc 2021-05-31 16:01:21 -07:00
tastybento
c3b25c92b5 Added JavaDoc 2021-05-31 16:01:12 -07:00
tastybento
6e9513f2ea
Enable plugins to register Addons (#1768)
* Enable plugins to register Addons

* Pladdon approach. Loads addons as plugins.

* Added auto-move for pladdons.
2021-05-31 12:42:54 -07:00
tastybento
9fc22aa8e7 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-05-28 17:25:03 -07:00
tastybento
bedeb7c168 Addd GSON enum type adapter for compatibility with Mohist
https://github.com/BentoBoxWorld/BentoBox/issues/1766
2021-05-28 17:24:51 -07:00
gitlocalize-app[bot]
7f8297475d
Total translation rate that appears to be incorrect in the system (#1765)
* Translate tr.yml via GitLocalize
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: tastybento <tastybento@wasteofplastic.com>
Co-authored-by: ZyXpe <thechefsmaster@gmail.com>
Co-authored-by: Over_Brave <soncesurlar@gmail.com>
Co-authored-by: trafoziya <omerziyaakay@gmail.com>
2021-05-28 16:32:30 -07:00
tastybento
e472e07c34 Fixes Invincible Visitor settings panel
https://github.com/BentoBoxWorld/BentoBox/issues/1762
2021-05-22 17:41:47 -07:00
gitlocalize-app[bot]
03417a78f7
Translate tr.yml via GitLocalize (#1761)
Co-authored-by: trafoziya <omerziyaakay@gmail.com>
2021-05-22 16:29:33 -07:00
Fredthedoggy
ca39e05fc7
Allow Non-Bentobox commands as default player (commands) (#1760)
* Update ServerCompatibility.java

* Update Default Player Command to support non-bentobox commands
2021-05-15 13:20:09 -07:00
tastybento
64c83f809c Adjusted default command for backwards compatibility 2021-05-13 08:01:22 -07:00
tastybento
36d0a07e35 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2021-05-13 07:37:52 -07:00
tastybento
2bc35c8936 Runs player go and create commands as direct calls.
Avoids performCommand because it can be trapped as a cheat because it
executes too fast. Allows use of non-subcommands.
2021-05-13 07:37:41 -07:00
Fredthedoggy
022d343295
Update Plugin.yml for new Permissions Addon (#1758) 2021-05-11 21:36:59 -07:00
tastybento
982dc2fd52 Require non null getCenter
This will throw a big runtime error if range is adjusted without a
center location being defined. Should only affect addons like the
Converter.
2021-05-11 21:29:44 -07:00
tastybento
839f05de71 Fix maxteamsize placeholders
The placeholders were not using the correct API call and so were
reporting based on the player's permission and not the actual island's
maxteam size.

https://github.com/BentoBoxWorld/BentoBox/issues/1753
2021-05-07 12:36:12 -07:00
Fredthedoggy
9ed0620bb0
Update ServerCompatibility.java (#1751) 2021-05-01 09:37:11 -07:00
tastybento
09bac48b5e Adjusted portal search radius to 64. 2021-04-25 09:35:45 -07:00
tastybento
352c6dec84 Use home names instead of numbers in locale 2021-04-24 10:50:23 -07:00
gitlocalize-app[bot]
3242a497db
NL Translation (#1748)
* Translate nl.yml via GitLocalize

* Translate nl.yml via GitLocalize

* Update nl.yml

* Update nl.yml

Co-authored-by: tastybento <tastybento@wasteofplastic.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
2021-04-24 10:45:25 -07:00
tastybento
b1ab2ecece Corrected since reference, removed debug. 2021-04-24 09:02:47 -07:00
tastybento
33b49a2349 Set minimum portal search radius to 8. Added config option.
https://github.com/BentoBoxWorld/BentoBox/issues/1747
2021-04-24 08:45:05 -07:00
fredthedoggy
2a1d9fcc61
Add WildStacker as SoftDepend to plugin.yml (#1742) 2021-04-18 13:47:07 -07:00
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
Qumoo
9db7721016
Updated german language file (#1727)
* Updated german language file

Fixed typo, fixed consistency (beacon = english, Leuchtfeuer = german)

* Updated german language filede.yml

fixed typos, translated messages that were still in English
2021-03-24 22:18:16 -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
apachezy
b8d9b73103
Added DamageCause into zh-CN.yml and zh-HK.yml. (#1721)
* Added getMusicDiskDesc into LangUtilsHook.

* Added DamageCause into zh-CN.yml and zh-HK.yml.

Co-authored-by: zhangYi <apachezy@hotmail.com>
2021-03-16 19:08:16 -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
apachezy
17d5b7392b
Additional improvements to zh-CN (#1714)
Co-authored-by: zhangYi <apachezy@hotmail.com>
2021-03-15 14:20:54 +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
gitlocalize-app[bot]
487fa6af8e
Translate ja.yml via GitLocalize (#1711)
Co-authored-by: tastybento <tastybento@wasteofplastic.com>
2021-03-14 11:24:49 -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
4544cada3a
Improved zh-CN (#1710)
* Improved zh-CN.yml

* Delete an error.

* days-one-or-more #1707

* Patch NO.1

Co-authored-by: zhangYi <apachezy@hotmail.com>
2021-03-13 18:49:57 +01: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
poslovitch
40d1c318d5 Fixed purge command "one day or more" message
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1707
2021-03-12 22:02:16 +01: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
Huynh Tien
5142894127
rework on Vietnamese translation (#1671)
* rework on Vietnamese translation
2021-03-07 09:29:58 -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
30b8d17669 Add plugin.yml support for AdvancedChests. 2021-02-25 17:39:44 -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
bf94e56f78 Merge branch 'harvest' into develop 2021-02-14 16:57:16 -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
c7bee0425d
Update ro.yml 2021-02-14 12:50:21 -08:00
gitlocalize-app[bot]
7e77a2382e
Romanian translation, needs fixing WIP (#1681)
* Translate ro.yml via GitLocalize

* Translate ro.yml via GitLocalize

* Update ro.yml

Co-authored-by: tastybento <tastybento@wasteofplastic.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
2021-02-14 12:39:19 -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
Joseph
791d6a09f9
Correct german translation (#1665)
Should be tiere meaning animals in german
2021-01-29 18:25:57 -08: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
gitlocalize-app[bot]
4363673266
Spanish Translation (#1633)
Co-authored-by: SrAcosta <gerardo.gomez.acosta@gmail.com>
2021-01-09 17:33:04 +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
gitlocalize-app[bot]
93cb2d64d9
Translate tr.yml via GitLocalize (#1625)
Co-authored-by: Over_Brave <soncesurlar@gmail.com>
2020-12-31 09:47:36 -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
gitlocalize-app[bot]
f281d37a8d
Updated Turkish translation (#1620)
* Translate tr.yml via GitLocalize

* Translate tr.yml via GitLocalize

Co-authored-by: tastybento <tastybento@wasteofplastic.com>
Co-authored-by: ZyXpe <thechefsmaster@gmail.com>
2020-12-27 10:27:15 -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
Gabriel Fontes
b8d5a76efb
Portuguese localization (#1511)
* Portuguese localization

* Fixed typo

* Rename pt.yml to pt_BR.yml

Co-authored-by: tastybento <tastybento@users.noreply.github.com>
2020-10-08 17:49:24 -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
458ea6b027 Removed duplicate keys 2020-09-12 16:55:42 -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
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
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
Clément P
6a28ba0b1d
Add support for MongoDB URI (#1330)
Implements #1311
2020-05-01 21:28:52 +02:00
Florian CUNY
faba022a7b Fixed some code smells 2020-05-01 20:51:47 +02:00
Florian CUNY
a764e9e232 Release 1.13.0 2020-05-01 18:14:03 +02:00
Florian CUNY
92ca54cb46 Added jAvEE_fr as an author of the French translation 2020-05-01 18:06:21 +02:00
Florian CUNY
b8e0282057 Some more work on the French translation
Keeps getting issues with GitLocalize though...
2020-05-01 17:50:56 +02:00
BONNe
d47216f2c8
Add AdminSetSpawnPointCommand to DefaultAdminCommand (#1329) 2020-05-01 15:40:54 +02:00
Florian CUNY
d45be091bd Fixed the confirmation warning message showing twice in AdminRegisterCommand
It will now only be sent once, when asking for confirmation
2020-05-01 14:21:25 +02:00
Florian CUNY
c29b376d3b Made some minor tweaks to en-US.yml 2020-04-29 21:50:58 +02:00
gitlocalize-app[bot]
70babfcd68
Some more work on the French translation (#1326) 2020-04-29 21:49:03 +02:00
gitlocalize-app[bot]
1ed4773199
Some additional work on the French translation (#1322) 2020-04-29 13:31:28 +02:00
Florian CUNY
4e7a31b0a3 Added some [name] text variables in register/unregister messages
and made some minor tweaks in en-US.yml
2020-04-27 01:31:10 +02:00
gitlocalize-app[bot]
1a4e56b4f8
Updated French translation (still WIP) (#1318)
and another wip french locale update. We're still working on it!
2020-04-27 01:28:20 +02:00
gitlocalize-app[bot]
344db775bc
Started working on French translation (#1317)
There's a lot of machine translation as well as a lot of bad stuff, but I want to get that first part of the job saved in Git, in order to avoid GitLocalize wiping everything in the night.
2020-04-26 23:59:15 +02:00
tastybento
e381d61c3c Fixes issue where addon has no perms in addon.yml
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1312
2020-04-26 10:08:45 -07:00
tastybento
17186dd791 Remove unused imports 2020-04-26 08:32:52 -07:00
Florian CUNY
c9298c3ae6 Added BentoBoxReloadLocalesCommand
Implements #1245
2020-04-26 13:18:37 +02:00
Florian CUNY
a1af25b98c Removed tab completion in BentoBoxReloadCommand (unused) 2020-04-26 13:07:48 +02:00
Florian CUNY
b558c905a4 Fixed ConcurrentModificationException on startup
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1312
Was introduced by 1f3a79127a
2020-04-26 11:45:44 +02:00
tastybento
1f3a79127a
Implements placeholder permissions for addons (#1305)
Implements #1303. 

Addons will no longer need to see their permissions updated each time there is a new gamemode. They can use [gamemode] in their permissions to automatically register the permissions on all available gamemodes.
2020-04-26 01:20:48 +02:00
tastybento
fe58159db3
Adds saveObjectAsync with a CompletableFuture return for databases (#1308)
Deprecates the saveObject() method
2020-04-26 01:00:49 +02:00
BONNe
97341ce657
Add DefaultPlayerCommand and DefaultAdminCommand (#1293)
Helps to implement #498.

Also added 4 new WorldSettings methods:
* getAdminCommandAliases()
* getPlayerCommandAliases()
* getDefaultPlayerAction()
* getDefaultNewPlayerAction()

Co-Authored-By: Florian CUNY <poslovitch@bentobox.world>
2020-04-26 00:57:14 +02:00
YellowZaki
f08c7dece3
Added Addon#reloadConfig() (#1302) 2020-04-26 00:37:03 +02:00
Florian CUNY
46ba40b70d Fixed IslandsManager#getSafeHomeLocation throwing NPE if world is not an island world
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1306
The method now properly returns null if the world is not an island world.
2020-04-25 14:40:47 +02:00
BONNe
40240c7225
Add AdminSetSpawnPointCommand to change an island's spawn point (#1295)
Implements #937.
2020-04-24 14:33:44 +02:00
tastybento
ae63125f50
Enables UUIDs to be used in admin commands as well as names (#1298)
Implements a solution for #1297.

Adds Util#getUUID(String nameOrUUID)
2020-04-23 21:16:09 +02:00
BONNe
5734709594
Implement ability to change PanelItem amount. (#1299)
Adds #getAmount() and #setAmount(int) in PanelItemBuilder
2020-04-23 20:57:16 +02:00
tastybento
b1dcec2160
Adds API to enable commands to be hidden from help and tab (#1301)
Implements #1300.

Adds CompositeCommand#setHidden(boolean).
2020-04-23 20:54:45 +02:00
tastybento
eee8709636 Combined safe spot checking into one place.
We had two sets of checking with different criteria. This consolidates
them.

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1296
2020-04-22 18:25:10 -07:00
Florian CUNY
4aba4e1137 Use the "spawn protected" message when the island is a spawn 2020-04-21 20:37:22 +02:00
tastybento
88b331d1e4 MySQL databases were not saving properly on shutdown.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1292
2020-04-20 18:37:42 -07:00
Florian CUNY
91ccf51a54 Added option to keep old islands when resetting
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1188
2020-04-20 17:20:12 +02:00
tastybento
b6dd7d114e Revert "Fixed BentoBox not properly disabling if errors at startup (#1285)"
This reverts commit ee2f86ae3b.
2020-04-20 07:26:34 -07:00
Krystian
8c4b9380d3
Update Polish translation (#1289) 2020-04-20 13:18:49 +02:00
tastybento
ee2f86ae3b
Fixed BentoBox not properly disabling if errors at startup (#1285)
Fixes #1281
2020-04-20 13:15:55 +02:00
tastybento
85d5a3a6ac
Adds a single character prefix to database tables (#1278)
* Adds a single character prefix to database tables

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

* Fix tests

* Fix bug with substring
2020-04-18 14:16:36 -07:00
tastybento
b94f9db0a9 Emphasize that natural spawning is toggled for mobs and animals
https://github.com/BentoBoxWorld/BentoBox/issues/1284
2020-04-18 11:59:21 -07:00
Florian CUNY
0f6852dac6
Fixed reference "cannot-kick" showing up in IslandTeamKickCommand 2020-04-17 15:03:49 +02:00
tastybento
80285b71df Added error message info to Addon config save error 2020-04-15 07:39:37 -07:00
tastybento
9ea672b8e7 Do not run new island clearing jobs if player cannot teleport
https://github.com/BentoBoxWorld/BentoBox/issues/1280
2020-04-13 08:20:36 -07:00
tastybento
f0c50a5211 Remove debug 2020-04-09 22:10:28 -07:00
tastybento
d327ea4a89 Protect paintings from projectiles and being placed.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1273
2020-04-09 16:02:51 -07:00
tastybento
b6b9b11f53 Removed unused imports 2020-04-07 13:42:42 -07:00
tastybento
b29da53f43 Revert "Made BentoBoxCommand#setup() default (#1258)"
This reverts commit 7de842e284.
2020-04-07 13:38:44 -07:00
Florian CUNY
5b01f39f9e Fixed tests and logic with coop/trust limits 2020-04-05 15:15:26 +02:00
Clément P
0f2ba0e202
Added coop and trust limits (with permissions) (#1267)
Implements #1065.

Added two new permissions:
* [gamemode].trust.maxsize.[NUMBER]
* [gamemode].coop.maxsize.[NUMBER]

Added two new WorldSettings and related methods in IWM:
* getMaxCoopSize() (defaults to 4)
* getMaxTrustSize() (defaults to 4)

* Add limit for coop players #1065

* Edit comparison sign

* Add limit for trust players #1065

* Add default value and add since javadoc tags

* improved messages

* readded missing "

Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-04-05 14:28:59 +02:00
Florian CUNY
e0d5c7b8bd Fixed the since javadoc tags for the previous commit 2020-04-05 10:34:06 +02:00
Florian CUNY
71fb955114 Implemented prefixes in localizations and a default prefix for BentoBox
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1086

started working on prefixes

added BentoBox prefix
2020-04-05 10:28:16 +02:00
Clément P. (Cleymax)
3bd0ff4a69 Added IslandRankChangeEvent (#1260)
Implements #1135

changed name of the event to append Event to it

Call the event in proper places
2020-04-04 21:57:59 +02:00
NotMyFault
74007a7a9f
Add break-spawner flag (#1263)
* Implements #1130

* Add proper styling to spawner-flag

Co-Authored-By: Florian CUNY <poslovitch@bentobox.world>

* Enforce yaml style

Co-Authored-By: Florian CUNY <poslovitch@bentobox.world>

Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-04-04 21:32:59 +02:00
tastybento
f3220e1fda Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2020-04-04 12:31:58 -07:00
tastybento
c987b0ce5c Update copyright info in about command 2020-04-04 12:31:48 -07:00
Clément P
024e5803b5
Add %[gamemode]_on_island% placeholder (#1259)
Implements #1168

* Add 'on_island' placeholder #1168

* removed hard dependency to PAPI's booleans methods

Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-04-04 20:45:10 +02:00
Florian CUNY
7de842e284
Made BentoBoxCommand#setup() default (#1258)
* Made BentoBoxCommand#setup() "default" and deprecated it

* Undeprecated BentoBoxCommand#setup() and changed its javadoc

* Put back setup in IslandGoCommand and IslandSethomeCommand

* Removed setup in AdminPurgeStatusCommand
2020-04-04 20:40:14 +02:00
NotMyFault
8566b2161f
Updated license dates in startup message (#1266) 2020-04-04 20:27:55 +02:00
NotMyFault
63cca31de1
Improved description of Creeper griefing flag (#1264)
Fixes #1201 regarding to https://github.com/BentoBoxWorld/BentoBox/issues/1201#issuecomment-588735557
2020-04-04 20:25:19 +02:00
tastybento
63e6f244bd Remove incorrect JavaDoc and forced use of SafeSpotTeleport builder 2020-04-04 08:20:32 -07:00
tastybento
a0dcb15026 Removed unused import 2020-04-04 08:20:06 -07:00
Florian CUNY
962b7d734a Removed MVdWPlaceholderAPIHook and all related methods
It was increasingly causing issues, ranging from long start times, unreliability with some of our placeholders, to much more...
There's a way for MVdWPAPI users to get PAPI's placeholders, so they should definitely use that instead.
2020-04-04 15:38:29 +02:00
Florian CUNY
2c7316ba21 Added AdminPurgeStatusCommand and improved some purge-related messages
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1254
2020-04-04 15:31:22 +02:00
Florian CUNY
c1741aa37f Improved colors in purge-related messages 2020-04-04 14:32:33 +02:00
Florian CUNY
960a8a7a00 IslandResetCommand now requires "[gamemode].island.reset" permission
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1207
2020-04-03 09:34:57 +02:00
tastybento
02b16c233c Fixes tests. 2020-04-02 14:49:45 -07:00
tastybento
425fb96b90 Use Util version of PaperLib to fix 323 test failures 2020-04-02 13:22:09 -07:00
tastybento
eafeacd739 Annotated loadObject as Nullable
If the table exists but has no data in it, then the return value will be
null.
2020-04-02 12:52:42 -07:00
Nassim
a36ddf5a73
Improved/Fixed experience pickup flag on Paper servers (#1256)
* Fixed experience pickup flag

* Added since and author javadoc tags

Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-04-02 10:43:49 +02:00
Florian CUNY
9e620cbbac Fixed spawn islands that could be purged as unowned
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1255
Also added a few more tests to prevent regression
2020-03-31 14:30:27 +02:00
Nassim
3125885bf3
Fixed player-not-cooped message key (#1251) 2020-03-30 15:26:09 +02:00
gitlocalize-app[bot]
1a173818a1
Updated Spanish localization (#1239)
* Translate es.yml via GitLocalize

* Update es.yml

Co-authored-by: SrAcosta <gerardo.gomez.acosta@gmail.com>
Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
2020-03-30 15:24:17 +02:00
Florian CUNY
7966146304 Added %[gamemode]_visited_island_members_list% placeholder
Implements https://github.com/BentoBoxWorld/BentoBox/issues/1246
2020-03-30 15:19:12 +02:00
Florian CUNY
d7dd37b85c Made some tweaks to en-US locale 2020-03-30 14:48:14 +02:00
tastybento
25d43c4f9f Removes velocity on teleporting
https://github.com/BentoBoxWorld/BentoBox/issues/1248
2020-03-28 09:42:55 -07:00
tastybento
aa708c4bdb Removed unused [nether_color] and [end_color]
https://github.com/BentoBoxWorld/BentoBox/issues/1248
2020-03-28 09:08:18 -07:00
Florian CUNY
1afd6ad014
Fixed enum reference of the "island_members_list" placeholder 2020-03-26 09:27:41 +01:00
tastybento
f7a6eb718c Adds bskyblock_island_members_list placeholder
https://github.com/BentoBoxWorld/BentoBox/issues/1243
2020-03-25 21:18:58 -07:00
Florian CUNY
a9fdda9ba1 Updated api version to 1.15 2020-03-22 16:17:48 +01:00
Florian CUNY
5c9cb4b4a4 Release 1.12.0 2020-03-21 13:10:51 +01:00
Florian CUNY
db9d2acf18 Fixed minor code smells 2020-03-21 11:29:33 +01:00
Florian CUNY
e322f4047a Moved BSTATS_ID to the BStats class 2020-03-21 10:49:58 +01:00
Florian CUNY
979fc021d0 Removed unused field in IslandPreclearEvent and fixed typo in docs 2020-03-21 10:47:29 +01:00
Florian CUNY
3f3ea689e6 Improved useSSL config comment 2020-03-21 10:45:44 +01:00
Florian CUNY
9aa6122a83
Fixed 'useSSL' option path in Settings 2020-03-20 10:23:25 +01:00
tastybento
1933d498f6 Fixes handling of negative perms for value setting
https://github.com/BentoBoxWorld/Limits/issues/73#issuecomment-600748928
2020-03-18 14:18:38 -07:00
tastybento
1429c0a763 Add protection for bee nests and hives
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1237
2020-03-18 14:10:53 -07:00
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