Tastybento
e09cb30cb5
Made head getting async for panels.
2018-03-31 18:34:49 -07:00
Tastybento
f0d3a9ab5f
Added in requirement for BsbMongo Plugin
...
BSkyBlock will disable itself gracefully if this plugin does not exist
but the database is sent to MONGO.
Finishes up https://github.com/tastybento/bskyblock/issues/155
2018-03-31 15:33:48 -07:00
Tastybento
a19b8bf836
Fixes issue with saving documents.
...
MongoDB seems to work now.
2018-03-31 15:17:58 -07:00
Tastybento
db58e29ffb
Removed MongoDb shading.
...
Mongo users will need the BsbMongo plugin.
2018-03-31 09:24:00 -07:00
Tastybento
4100edd279
Adds support for MongoDB.
...
Needs more testing, but seems to work. The main problem is that it pulls
in the MongoDB Java driver which boosts the size of the JAR to 2.3MB. It
may be better to put the Mongo driver into an addon so that only Mongo
users have to have the larger JAR.
2018-03-18 21:54:24 -07:00
Tastybento
17ecb1c0d4
Tweaks to improve code.
2018-03-17 09:24:17 -07:00
Florian CUNY
b662080ffa
Changed the question mark head to an MHF_
2018-03-17 11:40:30 +01:00
Tastybento
a9d5ab9b98
Try again - Travis, Sonarqube
2018-03-12 19:08:14 -07:00
Tastybento
16ebeb4419
Travis update to try to get SonarCube
2018-03-12 19:00:42 -07:00
Tastybento
21d465fb8b
Updated travis.yml to add branches
2018-03-12 18:41:02 -07:00
Tastybento
b86bdc2d93
Merge remote-tracking branch 'origin/master' into develop
2018-03-12 18:35:51 -07:00
Tastybento
3bdf029b1d
Added test for safe teleport.
2018-03-11 17:21:15 -07:00
Tastybento
b20fbd55a4
Cleaned up imports and unneeded exceptions
2018-03-11 15:59:03 -07:00
tastybento
8e97186caf
Fixed merge conflicts.
2018-03-12 05:11:02 +09:00
tastybento
1ec288e93b
Added sonarqube to travis.
2018-03-12 04:42:08 +09:00
tastybento
eb4e086482
Renamed variable. Removed logger.
2018-03-12 04:41:45 +09:00
tastybento
c10f413173
Added PotionEffectTypeAdapter for GSON
2018-03-12 04:09:05 +09:00
tastybento
cf792779f9
Now using JSON-based data for MySQL
...
Large number of changes to improve database functions.
2018-03-12 04:08:19 +09:00
tastybento
6626a9a4b0
Merge branch 'develop' into jsondb
2018-03-10 16:08:17 +09:00
Florian CUNY
e1f3da9449
Minor changes to existing Flags
...
Splited TRAPDOOR from DOOR
Splited HURT_VILLAGERS from HURT_ANIMALS
Renamed HURT_MOBS to HURT_ANIMALS
Renamed MOB_SPAWN to ANIMAL_SPAWN
Made FIRE_SPREAD a SETTING type Flag
Fixed MobSpawnListener with mishandling of ANIMAL/MONSTER spawn
2018-03-02 15:37:01 +01:00
Florian CUNY
f511e54429
Unit testing is working greatly, fixed CompositeCommand
2018-03-01 15:12:31 +01:00
Florian CUNY
97b9543f15
Fixed some code smells
2018-03-01 14:57:35 +01:00
Florian CUNY
e4cedb58d0
Removed useless constructor in CompositeCommand + updated unit tests
2018-03-01 14:43:33 +01:00
Florian CUNY
6ba27eef4e
Moved User to its own package + added Notifier to avoid massive "Island protected" spam
2018-03-01 14:25:09 +01:00
Florian CUNY
1a233e3e83
Added test for glow() in PanelItemBuilder
2018-03-01 11:14:58 +01:00
Florian CUNY
4a86784535
Fixes bug with nextSlot() not taking care of size if it was set
2018-03-01 11:05:19 +01:00
Florian CUNY
eb7a95dd67
Forgot to push the updated en_US for SettingsPanel
2018-03-01 11:02:42 +01:00
Florian CUNY
c60f92b7b3
MAJOR changes to Panel API
...
All methods in PanelBuilder follow the Builder pattern (no more "set...")
nextSlot() now returns the first unoccupied slot
2018-03-01 11:02:11 +01:00
Tastybento
fcede01a11
WIP using JSON and GSON for database.
...
Causes stack overflow right now. In the middle of debugging, but I need
this in github so I can grab it elsewhere.
2018-02-28 08:38:56 -08:00
Florian CUNY
f648c936ad
Continued working on the SettingsPanel. Did minor fixes in PanelItemBuilder
2018-02-26 20:18:09 +01:00
Florian CUNY
c6c7e0b4ee
Removed FlagsManager#getFlagByIcon() as it is useless
2018-02-26 10:07:25 +01:00
Tastybento
e598fa7c93
Cleaned up a vunerability and some code smells.
2018-02-25 23:05:21 -08:00
Tastybento
bdca10636e
Added Config comment capability.
...
See the challenges addon for examples.
2018-02-25 22:44:22 -08:00
Tastybento
1315dd990c
user or listener can be null, so need to us ofNullable.
2018-02-25 20:46:13 -08:00
Tastybento
9db2602f78
Added FlagsManagerTest class to test the flags manager.
...
Added some code to the Flag, Flags and FlagManager classes to enable
passing the tests.
Realized that some flags had duplicate icons. This means that the
getFlagByIcon() method doesn't work because there could be more than
one. If we want to allow duplicate icons then we need to change the
manager. Also, do we need to getFlagByIcon method?
2018-02-25 19:48:01 -08:00
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
a3200265d4
Including missing firelistener test.
2018-02-20 14:06:29 -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
58b1867b0d
Added to POM to get coverage from Jacco for Sonarcube
2018-02-19 23:22:23 -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
81e8d7da67
Added Pair junit test
2018-02-19 20:10:39 -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