tastybento
bb4c199487
Removed code smells.
2018-06-23 18:20:27 -07:00
tastybento
4fc63b6de0
Changed move file to copy and delete in FlatFile.
2018-06-23 17:54:51 -07:00
tastybento
21c259f628
Made constructor private.
2018-06-23 17:06:47 -07:00
tastybento
729706f69d
Reduced complexity of Flag constructor.
...
Added constructor to TextVariables.
2018-06-23 17:06:17 -07:00
tastybento
f12bc17ca3
Removed code duplication in Composite Command constructor
2018-06-23 16:32:53 -07:00
tastybento
9b8d42f692
Added island registration/unregistration.
...
Island center was not correctly being kept as immutable.
2018-06-23 15:45:09 -07:00
tastybento
97cf9b4132
WIP - testing register/unregister admim commands
...
JUnit tests do not pass, so bypass for now.
2018-06-21 22:30:09 -07:00
tastybento
12a1700848
Added Respawn On Island world flag.
...
Renamed getIslandWorldManaget to getIWM() in AbstractFlagListener.
2018-06-19 22:30:23 -07:00
tastybento
f32c661133
Added ItemParser test
2018-06-18 20:57:39 -07:00
tastybento
daf01ccd8d
Switched to non-locale-based decimal place setting.
...
https://github.com/tastybento/bskyblock/issues/186
2018-06-18 08:12:21 -07:00
tastybento
d4951a5873
Added stack trace print for debugging
...
https://github.com/tastybento/bskyblock/issues/186
2018-06-18 07:45:50 -07:00
tastybento
108d099156
Added EnderChest protection.
...
Enderchests are an explout because they allow transfer of items between
worlds. These additions enable usage to be switched on/off at the world
level. Also prevents ender chest crafting. These protections can be
bypassed via a permission or via Op.
Also, I fixed some settings issues in general around default settings.
2018-06-17 21:37:50 -07:00
tastybento
fba05ecc81
Fixed bug where database saving was every 5 ticks.
...
Changed to calculate minutes for database backup time.
2018-06-17 18:18:35 -07:00
tastybento
8353d266a5
Saved YML files then move for reliability reasons
...
Instead of saving on top of a YML file, we now save to a tmp file and if
it is saved successfully, then it is moved on top of the old file in an
atomic move. This helps avoid data loss if the file write fails.
2018-06-17 17:15:44 -07:00
tastybento
c03c1e3ecc
Fixes tests that broke by #158 bug fix.
...
b45a3160c7
2018-06-17 17:09:52 -07:00
Florian CUNY
a71eee537d
Print a kind message in console when the plugin is fully loaded 😄
2018-06-17 14:49:19 +02:00
Florian CUNY
45b4f32d78
Print more detailed info about addons loading in console
2018-06-17 14:48:53 +02:00
Florian CUNY
a8f2cabd82
Added support for banners in ItemParser & updated banners in locales
2018-06-17 14:39:40 +02:00
Florian CUNY
2249bc4864
Took ItemParser from the addon challenges
2018-06-17 11:48:35 +02:00
Florian CUNY
24a88e09ac
Added ENDER_CHEST flag and splited LEVER_BUTTON into LEVER and BUTTON
2018-06-17 11:36:17 +02:00
Florian CUNY
b45a3160c7
Should fix #158
2018-06-17 11:35:46 +02:00
tastybento
45c0bc84da
Removed debug lines.
2018-06-16 19:34:58 -07:00
tastybento
c8dfd4a242
Removed admin world command because world settings are back in general
...
settings command as a panel.
2018-06-16 19:28:53 -07:00
tastybento
beed146623
Added text to locale for settings panels
2018-06-16 19:13:57 -07:00
tastybento
034015ee4d
Switched back to using hard-coded islands while debugging.
...
Removed unused imports.
2018-06-16 19:06:08 -07:00
Florian CUNY
62a321caf1
Tried to fix SettingsToggleClickListenerTest
2018-06-16 23:44:08 +02:00
Florian CUNY
8ee42d3c47
Changed the description of the "Island protected" message to an "hint"
...
related to #184
2018-06-16 17:15:51 +02:00
Florian CUNY
b410d49c2b
Made the SettingsPanel fancier (well, I tried xD)
...
Had to remove the "MENU" FlagType, which I replaced by the "subPanel" argument in the Flag itself.
2018-06-16 17:10:00 +02:00
Florian CUNY
4525a04324
Splited MUSIC flag into JUKEBOX and NOTE_BLOCK
...
It has been suggested in #182 .
2018-06-16 16:46:01 +02:00
Florian CUNY
d4264a1c26
Fixed the click sound being also played to players nearby
2018-06-16 15:15:15 +02:00
Florian CUNY
c68c8d26cb
Language Panel: sorts the languages differently
2018-06-16 15:03:52 +02:00
tastybento
e5cfab50f7
Fix PanelListenerManager tests.
...
Added JavaDoc and adjusted boolean method name.
2018-06-16 10:52:44 +09:00
tastybento
21601089f4
Merge remote-tracking branch 'origin/develop' into develop
2018-06-16 10:44:13 +09:00
tastybento
ce65d34cb4
WIP - switching to using simple schems instead of hardcoded islands
2018-06-16 10:44:04 +09:00
Florian CUNY
d2697e1525
Added a description variable to the "Island protected" message
...
Added "[description]" in TextVariables
added getName- and getDescriptionReference() in Flag
2018-06-11 15:55:01 +02:00
Florian CUNY
63dd2d95b2
Added option to close panel on click outside of it
...
This is related to commit #8d596c5f1d24ea2e319e5172b2c954a8caa46f67
2018-06-11 12:19:14 +02:00
tastybento
9202cacb12
Removed verbose logging from FlagTest.
2018-06-10 22:35:56 -07:00
tastybento
aa7fbabf82
Fixed bugs with NPEs in non-island worlds.
2018-06-10 22:34:01 -07:00
tastybento
10d5c262ca
Added test class for PanelListenerManager
...
Refactored some code to be more streamlined.
2018-06-10 21:10:02 -07:00
tastybento
8d596c5f1d
Closes panels when clicked outside.
...
https://github.com/tastybento/bskyblock/issues/180
2018-06-10 20:10:41 -07:00
tastybento
92a7b0e596
Added admin "world" command.
...
This is used to set world settings.
2018-06-10 17:23:48 -07:00
tastybento
a4ec8ad266
Added remove mobs locale text.
2018-06-10 16:00:47 -07:00
tastybento
d364c006b0
Improvide code readability.
2018-06-10 15:42:21 -07:00
tastybento
1240cd266e
Implemented remove mobs on teleport
...
I simplified this to just remove mobs on login and island teleport. The
mobs to keep are currently hard coded. They could be taken from settings
in the future.
2018-06-09 23:06:59 -07:00
tastybento
90563dac35
World Flags are saved in the config.yml file.
...
Previously, world settings (world setting flags) were not actually being
saved anywhere. They are now saved in the config.yml.
WIP: RemoveMobsListener.java
Improved the FlagTest.
2018-06-09 22:09:20 -07:00
tastybento
1fc1780fd1
Fixed flag text and descriptions.
2018-06-09 17:22:38 -07:00
tastybento
27639f673a
JavaDoc clean up.
2018-06-09 16:40:38 -07:00
tastybento
db3344c8b9
Completed Invincible Visitors and PVP listeners.
...
This was a lot more work than I expected, but in the end the test class
was the best approach to cover all the edge cases.
2018-06-09 15:54:09 -07:00
tastybento
4534c16416
Fixed enter/exit messages for unowned islands and tests.
2018-06-08 08:26:07 -07:00
tastybento
9a666e29ca
Added specific WORLD_SETTING flag.
...
This flag is separate from island SETTING flags. The settings are done
in a different way and rather than try and work out which type is which,
it is better to specify them at the start.
Also added a SUB_MENU settings type.
2018-06-08 08:20:16 -07:00