Commit Graph

1204 Commits

Author SHA1 Message Date
Florian CUNY
1f93a7f085 Moved YmlCommentParser and YmlConfiguration to util/yaml package 2018-09-15 12:17:27 +02:00
Florian CUNY
edd64d2f30 Moved AddonState in Addon.State 2018-09-15 12:11:23 +02:00
Florian CUNY
23ff8de867 Version 0.10.0-SNAPSHOT due to upcoming API breaking changes 2018-09-15 12:07:16 +02:00
Florian CUNY
2eb46b0c2c Fixed some code smells 2018-09-15 11:37:56 +02:00
Florian CUNY
102ad864e1 Simplified condition in IslandCreateEvent 2018-09-15 10:44:04 +02:00
Florian CUNY
02be048192 Removed "general.errors.unknown-player-name" : added a "[name]" textvariable in "general.errors.unknown-player"
Closes #263
2018-09-15 10:39:16 +02:00
Florian CUNY
13bc945b40
Merge pull request #270 from BentoBoxWorld/fix-outside-closing-inventory
Fixed clicking outside of inventory closing even vanilla inventories
2018-09-08 19:55:03 +02:00
tastybento
d744b58638 Fixed tests
Created two new tests:

1. A test that closing inventory does not happen unless it is a known
panel.
2. A test that verifies known panels are closed.
2018-09-08 10:35:40 -07:00
Florian CUNY
918f6de782 Fixed clicking outside of inventory closing it
I edited it so it only happens on BentoBox's panels. Having it closing "every" inventory was causing issues with vanilla inventories (crafting table, etc...)

I could not fix the related tests though : PanelListenerManagerTest#testOnInventoryClickOutside (PanelListenerManagerTest.java:128) is failing every time.
2018-09-08 17:12:15 +02:00
Florian CUNY
cf11c1b9c1 Use ConfirmableCommand#askConfirmation(User, String, Runnable) in AdminSchemSaveCommand 2018-09-03 15:55:00 +02:00
Florian CUNY
a7d001d578 Added User#spawnParticle(Particle, Particle.DustOptions, int, int, int) 2018-09-03 15:53:16 +02:00
Florian CUNY
1c24619450 Merge remote-tracking branch 'origin/develop' into schem-command-improvements 2018-09-03 15:42:57 +02:00
Florian CUNY
cc6aaa1fd1
Merge pull request #261 from BentoBoxWorld/pvp-notify
Use User#notify() instead of #sendMessage() in PVPListener
2018-09-03 10:16:29 +02:00
tastybento
505624b45c Fixes tests. Also fixes a bug.
https://github.com/BentoBoxWorld/bentobox/issues/258
2018-09-02 20:45:31 -07:00
Florian CUNY
c039b9e13c
Merge pull request #259 from BentoBoxWorld/fix-unknown
Fixed players considered "unknown" until they create an island
2018-09-02 21:39:29 +02:00
Florian CUNY
ee9c7937ea Use User#notify() instead of #sendMessage() in PVPListener 2018-09-02 17:25:15 +02:00
Florian CUNY
fbf88483f0 Added trust and coop cooldown in config instead of using the invite cooldown for /is team coop and /is team trust 2018-09-02 15:06:46 +02:00
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
e380860b23 Splited AdminSchemCommand in various sub commands
Locale needs to be updated.
2018-09-02 11:13:58 +02:00
Florian CUNY
ffe1363c48 Fixed typo in SchemsManager 2018-09-02 11:10:20 +02:00
Florian CUNY
97222808ac Fixed players considered "unknown" until they create an island 2018-09-02 08:50:40 +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
db3bf21c4c Switched back to 0.9.0-SNAPSHOT for further development 2018-09-01 14:36:18 +02:00
Florian CUNY
6b65b92d10 Version 0.9.0-alpha2 2018-09-01 14:35:18 +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
c00f46c73c
Update README.md 2018-09-01 13:30:47 +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
f70c1ab7dd Putting Maven Shade plugin version back for Travis 2018-08-31 08:18:28 -07:00
tastybento
53cc36696d Shifted compiler plugin back to 3.7.0 for Travis 2018-08-31 08:00:29 -07: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
cacea15352
Improvements made to the README 2018-08-31 00:26:22 +02: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