Florian CUNY
493a525775
Fixed JSONDatabaseHandler to avoid memory leak
...
Thanks Sonarcloud ^^
2018-10-29 21:39:48 +01:00
Florian CUNY
2dd8fcb13c
Avoid catching Error (dangerous behaviour)
2018-10-29 21:29:43 +01:00
Florian CUNY
5cdfe690f4
Implemented basic Hooks API
...
WIP
2018-10-29 21:29:07 +01:00
Florian CUNY
5b97d16a2d
Made each DatabaseConnectors's constructors package-private
2018-10-29 20:55:18 +01:00
Florian CUNY
bf506a49b2
Fixed some code smells
2018-10-28 17:15:13 +01:00
Florian CUNY
37cb96f586
Fixed [label] text variable being replaced by "invite" in the invite notification
...
Fixes #315
2018-10-28 17:03:42 +01:00
Florian CUNY
7b2478cf33
Updated databaseType config comment
2018-10-28 16:51:51 +01:00
Florian CUNY
e8ba1805a5
Renamed FLATFILE databasetype to YAML
2018-10-28 16:51:38 +01:00
Florian CUNY
db5ac2d0e5
Added JSON (flatfile) database type
2018-10-28 16:34:43 +01:00
Florian CUNY
10000b71f6
Little optimization for AbstractJSONDatabaseHandler#getGson()
2018-10-28 16:02:54 +01:00
Florian CUNY
4f5009fe0e
Moved DATABASE_FOLDER_NAME in AbstractDatabaseHandler
2018-10-28 16:02:23 +01:00
Florian CUNY
04e4f9a4aa
Moved TypeAdapters and AbstractJSONDatabaseHandler in database/json package
2018-10-28 15:38:57 +01:00
Florian CUNY
dcba17f569
Made all DatabaseHandlers' constructors package-private
2018-10-28 15:34:02 +01:00
Florian CUNY
77258b2770
Added AbstractJSONDatabaseHandler<T>
2018-10-28 15:28:43 +01:00
Florian CUNY
f0c4cb710c
Removed DatabaseConnector#loadYamlFile and DatabaseConnector#saveYamlFile
...
It was only used by FlatFileDatabaseHandler and therefore was useless for other DatabaseHandlers
2018-10-28 15:01:17 +01:00
Florian CUNY
0dc9de9c37
Fixed broken file renaming
...
Well... Hopefully it'll fix it
2018-10-28 14:33:36 +01:00
Florian CUNY
49c7d6b646
Renamed MONGO -> MONGODB in DatabaseType
2018-10-28 14:15:29 +01:00
Florian CUNY
2f7b8a6764
Simplified AddonsManager#sortAddons()
2018-10-28 14:09:35 +01:00
Florian CUNY
12d1909a22
Bunch of fixes to the AddonsManager
...
Renamed loader list to loaders.
Removed #loadAddonsFromFile().
Fixed the error handling when enabling an addon.
Fixed #disableAddons() disabling not-enabled addons.
Renamed #setLoader() into #setLoaders()
2018-10-28 13:42:13 +01:00
Florian CUNY
b87416d030
Removed YmlConfiguration and YmlCommentParser as they weren't used
2018-10-28 11:43:55 +01:00
Florian CUNY
b4e3079cf9
Removed unused imports in Util
2018-10-28 11:36:47 +01:00
Florian CUNY
3e34b4d11d
Added a bit more logging in AddonsManager
2018-10-28 11:36:36 +01:00
Florian CUNY
6dd02a15b7
Made use of Addon.State
...
Fixes #281
Replaced Addon#setEnabled(boolean) with Addon#setState(Addon.State).
Now, if an exception gets thrown while enabling an addon, it'll automatically stop enabling it and set its state to "INCOMPATIBLE" or "ERROR". These values could later be get to be displayed in the version command.
2018-10-28 11:12:00 +01:00
Florian CUNY
e930510243
Renamed TestBSkyBlock to TestBentoBox
2018-10-28 10:34:22 +01:00
Florian CUNY
75e5d29934
Replaced IslandTeamSetownerCommand label to "setowner" instead of "setleader"
2018-10-28 10:28:23 +01:00
Florian CUNY
89700c82cc
Renamed TeamEvent.TeamSetOwnerEvent to TeamEvent.TeamSetownerEvent
2018-10-28 10:27:22 +01:00
Florian CUNY
14a794a5b1
Lowercased some command class names to better fit how they are actually working in game
2018-10-28 10:27:01 +01:00
Florian CUNY
14a3ed6792
Renamed TeamEvent.TeamMakeLeaderEvent to TeamEvent.TeamSetOwnerEvent
2018-10-28 10:19:55 +01:00
Florian CUNY
13c483e5eb
Renamed AdminTeamMakeLeaderCommand to AdminTeamSetOwnerCommand
2018-10-28 10:19:14 +01:00
Florian CUNY
cc2bbfc447
Updated version to 0.12.0-SNAPSHOT due to upcoming breaking changes
2018-10-28 10:18:27 +01:00
Florian CUNY
20b6c4a7cb
Fixed tests and commands relying on previously broken API
...
Mistakenly pushed the previous changes on develop before committing these fixes.
2018-10-27 16:52:07 +02:00
Florian CUNY
a071f97538
Fixed island protection range not being updated after a login
...
Fixes #256 .
2018-10-27 16:47:55 +02:00
Florian CUNY
f27b8aa003
More Javadoc fixes in IslandsManager & use the new Addon#getPermissionPrefix
2018-10-27 16:43:17 +02:00
Florian CUNY
b6230f2bdf
⚠️ removed CompositeCommand#setPermissionPrefix(String)
...
The permissionPrefix is now inherited from the addon's.
2018-10-27 16:42:29 +02:00
Florian CUNY
d9a15ceedd
Added Addon#getPermissionPrefix
2018-10-27 16:41:24 +02:00
Florian CUNY
b286bb3296
⚠️ Various changes to IslandsManager
...
Fixed some Javadoc.
Renamed #getCount() to #getIslandCount().
Renamed #makeLeader() methods to #setOwner().
Removed the permPrefix parameter from #setOwner() methods.
2018-10-27 16:32:06 +02:00
Florian CUNY
9427d3dd46
Version updated to 0.11.1-SNAPSHOT due to upcoming bug fixes
2018-10-27 15:48:34 +02:00
Florian CUNY
8b821e9f47
Fixed paramters -> parameters in en-US locale
2018-10-27 15:43:36 +02:00
Florian CUNY
3df4d4be30
Updated default config.yml
2018-10-25 10:30:27 +02:00
Florian CUNY
64aab973e1
Switched back to 0.11.0-SNAPSHOT for further development
2018-10-25 09:59:40 +02:00
Florian CUNY
b2860b825f
Updated version to 0.11.0-alpha1
2018-10-25 09:58:23 +02:00
Florian CUNY
ec2793e6f8
Made IslandSethomeCommand a ConfirmableCommand
...
#237
It adds a bunch of WorldSettings and updates the en-US locale as well!
2018-10-25 09:43:36 +02:00
Florian CUNY
09ce51259d
Fixed a mistake in IWM javadoc
2018-10-25 09:42:50 +02:00
Florian CUNY
5391544e9c
Fixed "island.maxhomes" permission not being appended with the addon's permission prefix
...
This may help for #256 .
2018-10-20 11:45:41 +02:00
Florian CUNY
95bfab916e
Replaced Util#getPermValue(Player, String, int) with User#getPermissionValue(String, int)
2018-10-20 11:32:42 +02:00
Florian CUNY
3102195156
Fixed a bunch of code smells (again)
2018-10-20 10:59:19 +02:00
Florian CUNY
85ea4af1ad
Readded User#spawnParticle(Particle, Particle.DustOptions, int, int, int)
2018-10-20 10:37:31 +02:00
Florian CUNY
7248fb3e14
Fixed some code smells
2018-10-14 10:09:04 +02:00
Florian CUNY
cae214f856
Added schem clipboard selection display using particles
2018-10-14 09:51:49 +02:00
Florian CUNY
3d763bddad
Made User#spawnParticle use double instead of int
2018-10-14 09:50:15 +02:00