-
Notifications
You must be signed in to change notification settings - Fork 25
Time Saver
LightningStorage is designed to burst away your boilerplate-code.
If you want to be productive, this library is just right for you: I've been working with config files and this stuff for a long time and I know how annoying the default checks can be so I decided to implement custom methods that will boost your productivity!
We also improved your methods over time in order to constantly increase the benefit LightningStorage provides you.
LightningStorage uses the most cutting-edge technologies to fast track your Java-Application.
With this productivity boosters, you will become able to be way more productive than your competitors and totally outrun them by having an almost unfair advantage.
It sets a value only if the file does not yet contain the associated key. This saves you from various contains checks in some cases this will reduce the code you have to write by 90%!
This method can be used to retrieve a default value from a file. Instead of using a lot of duplicated & hard to read if conditions you can just use getOrDefault. This method can make your code way cleaner and thus way easier to read and understand.
It sets a value only if the file does not yet contain the associated key. If the file does not yet contain the file it will return the default value. If the file already contains the key it just returns the value of it (and not the default value) This is incredibly helpful if you want to store player data or things like that in a file!
It's also very helpful if you want to have a multilingual plugin. You can just get&set the messages in one line! Believe me, this saves large amounts of time
This method sets a pathPrefix so you don't have to type so much!
This avoids you from typing
get("spawn.x") get("spawn.y") get("spawn.z")
instead, you can just type:
setPathPrefix("spawn")
and then
get("x")
This method also reduces the amount of code you have to write dramatically and will make your code more readable!
2020-2022 - SimplixSoftworks