Tastybento
97491b1d89
Removed unused imports
2018-02-25 18:21:42 -08:00
Tastybento
7fa038bfce
Merge branch 'develop' of https://github.com/tastybento/bskyblock.git into develop
2018-02-25 18:20:01 -08:00
Tastybento
00121e7e37
Added a specific config class to store objects as YAML
2018-02-25 18:19:52 -08:00
Florian CUNY
a885247c85
Implemented basic SettingsPanel + MAJOR changes in Panel/Flag API
...
It currently just displays a panel with all the flags in it. And throws exception when clicking on an item :P
Flag no longer have a PanelItem but Material instead as the icon.
Added a toPanelItem() method in Flag
Made the Panel(Builder) not using the Optional as fields anymore
2018-02-25 17:09:46 +01:00
Florian CUNY
6edc9555ad
Renamed FlagType -> Flag and Flag -> Flags
...
Don't know when nor why it has been changed. Flag means the object, the flag itself, while Flags means the list of pre-defined Flag(s).
2018-02-25 16:01:30 +01:00
Tastybento
b043e641a1
Added equals to User class
...
Added null check for FlatFileDB Handler.
2018-02-24 21:29:51 -08:00
Tastybento
5a3a557cf2
Made improvements while writing challenges addon
...
Improved enum error handling in flat file.
2018-02-24 11:28:21 -08:00
Tastybento
84f10d6790
Removed debug.
2018-02-20 14:16:40 -08:00
Tastybento
b25d17fa78
Renamed flags to Flag because it was confusing.
...
Had to rename the class to FlagType as a result.
Rewrote FireListener to be simpler.
Wrote test case for fire listener.
2018-02-20 14:06:09 -08:00
Tastybento
57cb919ebf
Cleaned up code for FlatFileDatabaseHandler
2018-02-19 22:45:53 -08:00
Tastybento
6c4a7d6f97
Added test case for MobSpawnListener
...
Rewrote MobSpawnListener to be testable and to improve the code.
2018-02-19 22:32:00 -08:00
Tastybento
44ed33bb26
Tweaks due to work on Challenges addon.
...
Enabled the overall panel listener to work.
2018-02-19 19:49:21 -08:00
Tastybento
023a68546c
Changes made due to addon development.
...
Added a method to easily get named addons from other addons.
Fixed bugs with addonclassloader.
Added ignores to some unavoidable line items
Added auto-cancel to panels so that items cannot be taken from them by
default.
2018-02-19 13:05:36 -08:00
Tastybento
49764c151d
Reverted f3d7bf2af3
...
It breaks the addon class loading and using lamda functions doesn't end
up being neater because it must be able to throw a
ClassNotFoundExcepetion to the Bukkit code.
2018-02-19 12:05:59 -08:00
Tastybento
25b4f674bb
Fixes infinite error with commit f14676f
.
...
The lambdas were missing the input argument to the execute method so
were calling the parent's execute method.
2018-02-19 11:01:48 -08:00
Tastybento
382f195015
Added tests to PanelItemBuilder and fixed bugs.
...
Cleared up the description settings methods. Using these will add to the
description of the item.
Temporarily removed JavaDoc and Source jar creation from the POM to save
time when compiling. Will put it back when we need it.
Also, I worked out how to run the Bukkit server setup for tests. See the
setUp method in the tests. This works (at last).
2018-02-19 09:57:19 -08:00
Tastybento
7f0d71e25c
Added support for player heads in PanelItemBuilder API
2018-02-19 07:55:57 -08:00
Florian CUNY
f14676f5c6
Minor code quality fixes in IslandCommand
2018-02-18 11:32:25 +01:00
Florian CUNY
43367300a4
Started working on the Settings Panel
2018-02-18 11:31:49 +01:00
Tastybento
f64dc0aaea
Javadoc cleanup.
2018-02-17 17:01:25 -08:00
Tastybento
ca13f23918
Back ported SafeSpotTeleport from the ASkyBlock effort
2018-02-17 14:54:58 -08:00
Tastybento
9715811303
Removed @throws javadoc tag as it is not needed.
2018-02-17 14:54:36 -08:00
Tastybento
80c2f4178d
Improved CommandsManager to use CompositeCommand
...
This removes the requirement for addons to cast to CompositeCommand when
getting commands from the CommandsManager.
Removed unused imports.
2018-02-14 22:38:43 -08:00
Florian CUNY
4aaf559704
Fixed some code smells
2018-02-13 21:38:19 +01:00
Florian CUNY
0b6da56e82
Fixed some code smells in FlatFileDatabaseHandler
...
These code smells were fixed according to sonarcloud analytics
2018-02-13 17:49:35 +01:00
Tastybento
effefae377
Updated readme
...
Removed unnecessary ; from RanksManager
2018-02-11 20:39:08 -08:00
Tastybento
5ac66edb6a
Fixed teams.
...
Added test cases for RanksManager.
2018-02-11 20:26:09 -08:00
Tastybento
54dd9e87d4
Reduced the complexity of these commands.
...
By splitting up the methods, it makes it easier to understand and spot
bugs.
2018-02-11 15:22:03 -08:00
Tastybento
9f43f1e6fa
Removed unneeded method.
2018-02-11 14:13:21 -08:00
Tastybento
f1ace6b242
Fixed bug with saving MySQL database table.
...
Issue was that the uniqueId was not being saved and the map table was
pointing to the wrong ?'s.
2018-02-11 12:26:25 -08:00
Tastybento
52b3f184db
Fixed bug when creating new islands when there are islands in the world.
...
If there are unowned and unknown islands in the island spaces then
duplicate islands were being made when the search was done for new
islands.
2018-02-11 11:39:07 -08:00
Tastybento
c58fc0d07a
Removed debug.
2018-02-11 11:24:51 -08:00
Tastybento
c07b649488
Completed nether portals
...
Also fixed some issues around admin commands and the teleport admin
commands in particular.
2018-02-11 11:12:56 -08:00
Tastybento
b9c262fd5c
Fixed portals. Still has debug in it.
...
Need to add nether->overworld portal
2018-02-11 09:28:52 -08:00
Tastybento
5161de62db
WIP adding Nether Portals
2018-02-11 08:18:50 -08:00
Tastybento
4b66811fb0
Removed debug
2018-02-10 14:50:52 -08:00
Tastybento
487328950b
Fixed bug where new /island was doing /go as well.
2018-02-10 14:48:58 -08:00
Tastybento
921d25c2d5
Added private constructor because all methods are static.
2018-02-10 14:39:57 -08:00
Tastybento
d32a6f8ff1
Made code easier to understand
2018-02-10 14:32:13 -08:00
Tastybento
2b286ca58a
Removed debug, cleaned up code
2018-02-10 14:10:25 -08:00
Tastybento
11c1ffc790
Removed unnecessary (int)
2018-02-10 14:06:20 -08:00
Tastybento
a9ea8e830d
Code smells cleanup
...
Extract nested try block into a separate method.
2018-02-10 14:05:05 -08:00
Tastybento
180517cef3
Code smells cleanup
2018-02-10 14:00:40 -08:00
Tastybento
c76c854ed3
Code smells cleanup
...
Removed unnecessary cast in Island.
Combined if statement
Removed unnecessary {}
2018-02-10 13:56:44 -08:00
Tastybento
84e3ae3e8b
Removed imports
...
Fixed vulnerability issue with Pair
Fixed database connection issue with MySQLDatabaseHandler
2018-02-10 13:51:11 -08:00
Tastybento
65d34f5842
Reverted change of coords to long because not needed.
...
Mincreaft max coords are +/- 30 million.
2018-02-10 13:19:54 -08:00
Tastybento
ed65aa421d
Rewrote SafeSpotTeleport
...
Moved coords to longs instead of ints for island locations
Created a SafeTeleportBuilder class
Created a utility Pair class
2018-02-10 13:09:32 -08:00
Florian CUNY
4bd02a59ef
Added description to /bsb (reload and version) + added some aliases
2018-02-10 17:03:57 +01:00
Florian CUNY
b04602302b
Internal Placeholders are now working
...
It works, but it is more like a DIY patch thing. It has a few problems with the current implementation :
1. It doesn't suit our "code style" : it uses an Handler instead of a Manager, eg.
2. It is a bit laggy (I've got the feeling that it could be improved)
3. It doesn't hook to other Placeholder APIs for now
And a few other things.
I think this is more like a Proof of Concept : it will have to be improved in the next weeks.
2018-02-10 13:54:27 +01:00
Florian CUNY
65245a99f5
Fixes bug where the help could be seen even though not having the perms
2018-02-10 11:00:19 +01:00