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
tastybento
8a339f755a
Added Invincible Visitor settings.
...
This led to work to enable saving of the config.yml file with comments.
I added the ability to have multiple lines of comments as annotations.
I also enabled comments to align with the exact path of the field.
To do this I used BSBConfig for the Settings class and retired ISettings
When the plugin disables, it now saves the config.yml with comments and
the Invincible Visitor settings.
Note that any settings in the config.yml stored in the jar will still
exist in the file and stay there unless they are manually deleted. They
just will not have any comments on them after saving.
2018-06-05 00:06:55 -07:00
tastybento
aed648e6e7
Added Piston Push setting.
...
Allows/Disallows piston pushing outside an island.
This is a worldwide setting for admins.
https://github.com/tastybento/bskyblock/projects/3#card-10260101
2018-06-04 19:24:11 -07:00
tastybento
5904ef9194
Added Enter/Exit messages
...
This required adding support for world-specific toggle settings.
This also affected some other listeners.
2018-06-03 20:54:37 -07:00
tastybento
beafb5dd4c
Fixes frost walker console spam.
...
https://github.com/tastybento/bskyblock/issues/181
2018-06-03 15:48:52 -07:00
tastybento
f3472815c9
Fixed schems
...
The admin command "schem" now works very like WorldEdit.
You set the pos1 and pos2, copy to clipboard and paste
You can save and load. Schems go into the schems folder.
2018-06-03 15:33:45 -07:00
tastybento
1289060bd4
Merge branch 'confirmation' into develop
...
Conflicts:
locales/en-US.yml
src/main/java/us/tastybento/bskyblock/commands/island/IslandResetCommand.java
2018-06-03 14:03:46 -07:00
tastybento
2ea268f90f
Added confirmation code to CompositeCommand
...
How does this look?
2018-06-03 13:36:48 -07:00
Florian CUNY
433efcf6c0
Might a fix a NPE when loading Players from Flatfile database
2018-06-03 16:04:45 +02:00
Florian CUNY
884df8f07d
Fixed tests to use the TextVariables
2018-06-03 10:31:22 +02:00
Florian CUNY
4897d8ef77
Fixed some code smells
2018-06-03 10:23:45 +02:00
Florian CUNY
3d7ef58323
Removed unused argument in InventorySave constructor
2018-06-03 10:09:31 +02:00
Florian CUNY
3ab2c46eed
Reduced notification delay to 4 seconds
2018-06-03 10:08:50 +02:00
Florian CUNY
f5b5426327
Created TextVariables class that contains common text placeholders
2018-06-03 10:07:58 +02:00
tastybento
b87b00d887
Cleaned up some code smells.
2018-06-02 19:54:41 -07:00
tastybento
e69971d73c
Cleaned up some config settings.
2018-06-02 19:21:59 -07:00
Florian CUNY
74fa473d78
Removed help-item and added some flags references
2018-06-02 22:03:37 +02:00
Florian CUNY
caa2501968
Removed the help item from the SettingsPanel
2018-06-02 22:01:05 +02:00
Florian CUNY
08e11e90fa
Made CycleClick handle right click
2018-06-02 21:42:14 +02:00
Florian CUNY
d7b2c70b78
Fixed unaccurate logic in PanelBuilder#nextSlot()
2018-06-02 21:41:27 +02:00
tastybento
e7649f19d4
Added cycling click to protection flags.
2018-06-02 11:27:51 -07:00
tastybento
320c9a9f43
Fixes help permissions.
2018-06-02 08:39:45 -07:00
tastybento
d94477034a
Performed code cleanup using Intellij.
2018-05-31 18:52:05 -07:00
tastybento
bcc0028671
Removed debug
2018-05-30 20:27:41 -07:00
tastybento
53bd51e2f5
Fixed issue with adapter serializer
...
Serialize and deserialize were opposite
In deserializing in flatfile db, there was an odd extra bit of code that
undid the deserialization. I'm not sure why I put that in there and so
I've commented it out for now.
2018-05-30 20:23:05 -07:00
tastybento
6b6ec4c697
Fixed bug where worlds were not existing when islands loaded.
...
If islands are loaded before the world exists the island's world becomes
null. If an addon is creating an island then it must be loaded before
islands.
Also refactored some of the addon loading code.
2018-05-29 16:59:52 -07:00
tastybento
3b7b7fa557
Fixed bug with saving to flat file.
...
Must remember to include blank constructor so Beans can create the
object!
2018-05-29 14:57:01 -07:00
tastybento
d34ad5dce3
Fix bug with sethome not replacing previous homes.
2018-05-28 20:23:15 -07:00
tastybento
8f469eb339
Updated to work with addons like warps.
2018-05-28 15:46:07 -07:00
tastybento
b402450253
Cleaned up some vulnerabilities and code smells.
2018-05-27 21:37:00 -07:00
tastybento
3404fac8f2
Arrays can stream directly.
2018-05-27 08:50:14 -07:00
tastybento
60eac8e54e
Fixed bugs
...
Fixed issues where Settings were used instead of WorldSettings.
Added getWorld to the Admin team commands.
2018-05-27 00:05:36 -07:00
tastybento
66d9ef857d
Removed constants that reference the island and admin commands.
...
Fixed bug where addon onLoad was being called twice.
2018-05-26 18:20:02 -07:00
tastybento
a5a75c6854
Fixed tests.
2018-05-26 15:50:10 -07:00
tastybento
4bf0d8ec0f
Fixed bug with island command and island go
2018-05-26 15:35:02 -07:00
tastybento
007a9af025
Redid API for multiworld.
...
Now AcidIsland uses its own command instead of island.
Added a world element to commands so they can operate only in specific
worlds.
2018-05-26 13:08:35 -07:00