Commit Graph

1068 Commits

Author SHA1 Message Date
Florian CUNY
bd2cc1b63e Updated EnterExitListener to fire IslandEnterEvent and IslandExitEvent 2018-08-16 11:15:36 +02:00
Florian CUNY
d04b286055 Removed obsolete from locales 2018-08-16 10:49:57 +02:00
tastybento
5a38c0b5e0 Fixes bugs with copy file method. 2018-08-16 00:15:14 -07:00
tastybento
e12eb85bce Added Japanese locale and fixed US locale typos 2018-08-15 23:50:01 -07:00
tastybento
3d069910f9 Added colors to english locale 2018-08-15 21:08:50 -07:00
tastybento
382b47abbf Adjusted event priorities to stop console spam for island lock or ban
Changed enter-exit messages to notify
2018-08-15 21:01:00 -07:00
tastybento
22121ad4f9 Fixed bug with sub command getAddon() inheritance. 2018-08-15 20:50:02 -07:00
tastybento
5981ffa0d5 Removed unused InventorySave/Store classes. 2018-08-15 20:30:50 -07:00
tastybento
68624d2879 Removed unused imports. Removed unused classes InventorySave/Store 2018-08-15 20:30:34 -07:00
tastybento
8a687a52c6 Fix for saving config files in Windows. 2018-08-15 13:53:07 -07:00
Florian CUNY
6358f72986 Fixed some code smells 2018-08-15 11:01:07 +02:00
Florian CUNY
7815c837dd Deleted FlyingMobEvents (duplicate of GeoLimitMobs)
And also fixed a code smell with metrics method names in IslandsManager
2018-08-15 10:52:10 +02:00
Florian CUNY
0a0d66eebf Fix for the two last revert commits. 2018-08-15 09:58:01 +02:00
Florian CUNY
bce73a551d Revert "Rewrote IslandGrid to use Table<> from Guava"
This reverts commit b54c7ad662.
2018-08-15 09:53:25 +02:00
Florian CUNY
82ebc8b018 Revert "Fixed IslandCacheTest"
This reverts commit 8fb4e58994.
2018-08-15 09:51:41 +02:00
Florian CUNY
d926873992 Revert "Rewrote IslandGrid.Cell"
This reverts commit bfff61e6a1.
2018-08-15 09:51:12 +02:00
Florian CUNY
f12773475b Made DatabaseSetup an interface 2018-08-15 09:44:04 +02:00
Florian CUNY
539d2a0516 Fixed some code smells 2018-08-15 09:43:28 +02:00
tastybento
fc066a04a3 Added SuppressWarnings to classes using deprecated regenerateChunk 2018-08-14 19:09:14 -07:00
tastybento
baf6571614 Added comments and TODO's to FlatFileDatabaseHandler 2018-08-14 18:43:51 -07:00
tastybento
05ca21b0cd Fix for sonar cloud maven plugin version. 2018-08-14 15:01:53 -07:00
Florian CUNY
e11f173ca3 Made /is reset use the command cooldown API + switched "wait" settings to int
Aaaand had to update some tests. Lots of tests.
2018-08-14 21:11:46 +02:00
Florian CUNY
bfff61e6a1 Rewrote IslandGrid.Cell
Removed CellState.RESERVED for now
Made the Object an Island for now
Validate#notNull() in constructor
Made state and island variables final

Also updated the filters
2018-08-14 20:49:05 +02:00
tastybento
3118da2216 Added comments to FlatFileDatabaseHandler
WIP
2018-08-14 08:53:44 -07:00
tastybento
67d40462bc Code clean up.
Removed commodore for now.
Simplified some return statements.
2018-08-14 08:24:28 -07:00
tastybento
653e94e0b7 Made sub-class of CompositeCommand called ConfirmableCommand
This class inherits CompositeCommand and adds the confirming system.

It could be renamed Confirmable, like Bukkit has Cancellable for Events.
2018-08-14 11:43:21 +02:00
Florian CUNY
8fb4e58994 Fixed IslandCacheTest
Also commented out CellState.RESERVED.

That was a tough one. I had to rewrite IslandGrid#getIslandAt(int, int) quite a few times before using the stream() thing. I tested it a bit - it seems it is working like a charm.
I just hope that it won't be something useless - another plumbing change that adds nothing. It shouldn't - because of the "RESERVED" thing - but, well... it's been quite a hard thing!
2018-08-14 11:38:44 +02:00
Florian CUNY
4af03ee939 Fixed EnterExitListenerTest 2018-08-14 11:04:28 +02:00
tastybento
9367f41e72 Removed permission from BentoBox version command. 2018-08-13 20:05:16 -07:00
Florian CUNY
b54c7ad662 Rewrote IslandGrid to use Table<> from Guava
It also prepares further implementation for reserved "locations"
2018-08-13 21:45:43 +02:00
Florian CUNY
3ff387121a Minor javadoc edit in Island 2018-08-13 21:05:58 +02:00
Florian CUNY
2c16f88013 Updated tests 2018-08-13 21:05:47 +02:00
Florian CUNY
9d04aa376b Cleanup in CompositeCommand
Removed onlyConsole
Removed "showHelp" implementation
Removed deprecated setParameters
2018-08-13 21:03:24 +02:00
Florian CUNY
353c87cf6d Fixed EnterExitListener to support non-set Island's name
When an Island's name was reset (set to `null`) it was breaking EnterExitListener.
2018-08-13 16:08:05 +02:00
Florian CUNY
a29a2ccd8c
Merge pull request #234 from BentoBoxWorld/command_ranks
Command ranks
2018-08-13 13:55:42 +02:00
Florian CUNY
82ee5d8928 Brought back FC-0.92
I need to merge this pull request in order to continue working on BentoBox (some changes might cause conflicts). Therefore, I just put the version back to FC-0.92.
2018-08-13 13:53:58 +02:00
tastybento
ec3e956d76 Enforced onlyConsole setting.
Removed extraneous test code method
2018-08-12 20:09:04 -07:00
tastybento
4681a0bd7d Added BentoBox reload command
Only reloads locales for now.
2018-08-12 19:52:13 -07:00
tastybento
94c5ac8e79 Fixed bug with loading add-on with no locales.
Fixed bug with no permission error in click listeners.
2018-08-12 18:53:56 -07:00
tastybento
6eeff3f383 Added test classes for coop, uncoop, trust and untrust commands. 2018-08-12 17:15:11 -07:00
tastybento
c1a6a233a9 Added team coop, uncoop, trust and untrust commands. 2018-08-12 16:43:47 -07:00
tastybento
82c35f9aa9 Fixed test breaks. 2018-08-12 14:28:25 -07:00
tastybento
67dc4eedb3 Merge remote-tracking branch 'origin/develop' into command_ranks 2018-08-12 13:46:01 -07:00
Florian CUNY
7ec497a93b Fixed general.errors.no-permission being sent twice 2018-08-12 18:50:12 +02:00
Florian CUNY
3212b7180d Changed a few locale references for consistency
Removed `general.errors.you-need` to put the [permission] variable in the `general.errors.no-permission`.
Renamed all confirmation-related references to `commands.confirmation.xxx`.
Renamed `protection.panel.flag-item.xxx_rank` to use a dash instead of an underscore.
2018-08-12 18:47:31 +02:00
tastybento
ca4db42e8d Fixed bug with locale files being saved from BentoBox into addon locales 2018-08-12 08:02:54 -07:00
tastybento
686b4398bc Merge remote-tracking branch 'origin/develop' into command_ranks 2018-08-12 07:59:13 -07:00
Florian CUNY
2fee163818 Fixed default description and parametersHelp (again)
Commit efb8cb27a9 broke it
2018-08-12 11:38:09 +02:00
Florian CUNY
5b7502d83f Fixed minor code smells 2018-08-12 11:28:36 +02:00
Florian CUNY
20116ff287 Changed the main package declaration restriction to be 'world.bentobox.bentobox'
It will allow us to create our addons using a "conventional" package naming, such as "world.bentobox.bskyblock", etc...
2018-08-12 11:01:40 +02:00