Commit Graph

868 Commits

Author SHA1 Message Date
Florian CUNY
e5cc56b919 Added #askConfirmation(User, String, Runnable) in ConfirmableCommand
This can allow the command to give a bit more context about the confirmation request.
ConfirmableCommand#askConfirmation(User, Runnable) can still be used.
2018-09-02 11:55:26 +02:00
Florian CUNY
5ad363ca11 Fixed weird header display in Settings Panel 2018-09-01 17:38:54 +02:00
Florian CUNY
d05582fd79 Fixed Panels size that could be higher than 54 2018-09-01 17:38:36 +02:00
Florian CUNY
8e7843de82 Made Notifier.Notification private
External plugins/addons shouldn't have had access to this inner class.
2018-09-01 14:30:25 +02:00
Florian CUNY
678e699f1d Fixed Enter/Exit messages spam introduced in 343a789d95
Fixes #253
2018-09-01 14:29:45 +02:00
Florian CUNY
a12eec7a6b Fixed Invincible Visitors unit testing 2018-08-31 21:12:44 +02:00
Florian CUNY
279dc6fbd8 Fixed weird stained glass pane display in SettingsPanel 2018-08-31 21:09:01 +02:00
Florian CUNY
ea1fea66ff Fixed Invincible Visitors still using "general.errors.you-need". 2018-08-31 21:06:18 +02:00
Florian CUNY
63e004415b Fixed Flag.Type.WORLD_SETTING to use GRASS_BLOCK instead of GRASS 2018-08-31 21:04:24 +02:00
Florian CUNY
343a789d95 Fixed Enter/Exit messages not being sent when the player teleports to the island 2018-08-31 20:58:47 +02:00
Florian CUNY
4b9e8f1e0e Fixed NPE when an invite gets rejected 2018-08-31 20:46:53 +02:00
Florian CUNY
07547472b8
Fixed color general.errors.no-permission in en-US 2018-08-31 20:17:41 +02:00
Florian CUNY
b2c1102b9f
Merge pull request #250 from BentoBoxWorld/java10
Java 10 Compatibility
2018-08-31 20:01:46 +02:00
tastybento
4c3ddc8079 Put back in JavaDoc and Shade Plugin 2018-08-31 07:51:31 -07:00
tastybento
10db4230b0 Fixes compatibility issues with Java 10
Use non-deprecated methods still compatible with Java 8. These mostly
just propagate Exceptions up when instantiating constructors when using
the database functions.

Reverted POM back to Java 8 so that compiled code will work on Java 8 as
well.
2018-08-31 07:44:47 -07:00
Florian CUNY
24d783be24 Cleanup in Settings
Removed purge-related settings.
Renamed all database-related settings and methods to replace `db` with `database`.
Moved confirmationTime to `island.confirmation.time`.
Renamed inviteWait, banWait and resetWait to inviteCooldown, banCooldown, resetCooldown. Also moved them under `island.cooldown.x`.
Removed kickWait and leaveWait, using confirmationTime instead.
Moved `island.require-confirmation.<command>` to `island.confirmation.commands.<command>`.
Updated tests.
Updated getters and setters using code automation. Sadly, this wiped out all the Javadoc.
2018-08-31 11:06:37 +02:00
tastybento
95f8c81963 Switched to Java 10
Maven shade plugin and javadoc plugins have issues with Java 10 so those
are currently commented out.

BStats cannot work because shade plugin is not shading.

Shade plugin is fixed in snapshots, but not in Maven Central yet.
2018-08-30 21:44:56 -07:00
tastybento
4203ce85b4 Merge branch 'develop' of https://github.com/BentoBoxWorld/bentobox.git into develop 2018-08-31 10:49:56 +09:00
tastybento
4eadd259f7 Added PanelBuilderTest and fixed bug in PanelBuilder
nextSlot() was not giving next slot after an assigned slot.

11600ft and descending into SFO. 14 miles out.
2018-08-31 07:28:02 +09:00
Florian CUNY
1dfb46a2cd Changed island range particles to be gray redstone instead of TOWN_AURA 2018-08-30 23:54:44 +02:00
Florian CUNY
9b9031a009 Load Metrics only if it is set to true in config 2018-08-30 23:34:13 +02:00
Florian CUNY
3c00247eda Removed "general.check-updates" from config. Unused. 2018-08-30 23:33:52 +02:00
Florian CUNY
1e791f8497 Fix last login timestamp in Island#showInfo() being 0 due to how OfflinePlayer#getLastPlayed() works. 2018-08-30 23:28:50 +02:00
tastybento
0da7c0bb3c Fixed bug where panel size was incorrectly set.
Slot position is not the same as size. Size is slot + 1.
2018-08-31 05:45:18 +09:00
tastybento
f3bd4fa621 Removed unused import 2018-08-25 12:27:32 -07:00
tastybento
06f7b754b7 Removed enderman death drop flag. 1.13 drops blocks anyway. 2018-08-25 12:27:21 -07:00
tastybento
9e2c2c7dbc Adjusted remove rank test 2018-08-25 12:27:00 -07:00
tastybento
cdbceeb241 Fixed ranks manager removeRank code 2018-08-25 12:26:34 -07:00
tastybento
ff909cf8a6 addRank or removeRank could remove trust, coop and sub_owner ranks 2018-08-25 11:30:26 -07:00
tastybento
b9c2756094 Added protection from falling damage when new island made
Also sets player's velocity in all directions to zero.
2018-08-25 11:29:24 -07:00
tastybento
3a5908ec98 Added protection against breaking to items that are protected from use
https://github.com/BentoBoxWorld/addon-bskyblock/issues/5
2018-08-25 11:28:54 -07:00
tastybento
633007630d Fixed issue where settings.* permission was not working 2018-08-25 11:28:06 -07:00
tastybento
474de77ce2 Added death listener.
Counts player deaths in any game world.

Fixes https://github.com/BentoBoxWorld/addon-level/issues/18
2018-08-22 23:46:24 -04:00
tastybento
9b1c7f10ab Added Clipboard test class and improved Clipboard robustness
Flight # 2533
RDU to PHX
Above Memphis, TN
Altitude
38,006 ft
Ground speed
464 mph
2018-08-22 18:40:44 -04:00
tastybento
8364da6e65 Fixed pasting of entities in schems. 2018-08-21 11:38:17 -07:00
tastybento
4ca73385ca Fix for commands stopping working after logout
https://github.com/BentoBoxWorld/bentobox/issues/239

The player must be removed from the User cache on logout because the
player object becomes stale and if the player logs in again, they will
still have the old player object.
2018-08-19 11:46:36 -07:00
tastybento
a82e8138c3 Fix for 1st time file saving. 2018-08-18 14:27:50 -07:00
tastybento
f844b9bb40 Fixed AdminDeleteCommand. 2018-08-18 10:39:07 -07:00
tastybento
9847235df1 Fixes MySQL exists and delete functions. 2018-08-18 09:53:21 -07:00
tastybento
46c1ff4761 Added support for softdepend command in addon.yml.
Addons can now be sure to be loaded after others that may or may not
exist.
2018-08-17 21:58:11 -07:00
tastybento
9adabc4fb2 Added support for depend in addon.yml
This enables add-ons that must load after another addon to mark it in
the depend line of addon.yml
2018-08-17 21:09:19 -07:00
tastybento
f152d218fc Removed entity and tile limit settings from world settings
The functionality of limiting certain entities or tile entities can be
provided by an addon instead.
2018-08-17 17:42:57 -07:00
tastybento
3ebbcd87e8 Reworked POM to fix shading in of BStats. 2018-08-16 19:00:01 -07:00
tastybento
e959a04091 Merge branch 'develop' of https://github.com/BentoBoxWorld/bentobox.git into develop 2018-08-16 15:53:02 -07:00
tastybento
b80928184e Fixed code smells. 2018-08-16 15:52:23 -07:00
Florian CUNY
7b3b1303b4 Removed the current Placeholders API (it is unused) 2018-08-16 21:35:10 +02:00
tastybento
471cb30a87 Removed unused imports. 2018-08-16 11:06:18 -07:00
tastybento
5740ad7e0c
Merge pull request #238 from BentoBoxWorld/enter-exit-listener
Updated EnterExitListener to fire IslandEnterEvent and IslandExitEvent
2018-08-16 11:03:55 -07:00
tastybento
ec005569a1 Fixed tests for EnterExitListenerTest 2018-08-16 10:38:35 -07:00
tastybento
3f7198da25 NPE's fixed. Tests need to be fixed now. 2018-08-16 08:53:31 -07:00