Encapsulate some more variables

Refactor Settings class a bit and move header straight to the file
This commit is contained in:
Daniil Z committed 2021-03-01 19:27:01 +03:00
1 parent ca0ac7c13e
commit b05a5bfb8d
30 files changed
+248 -255

No files matched your search

@@ -21,7 +21,7 @@ public class WarpCommand extends CommandBase {
@Override
protected boolean onCommand(Player p, Command command, String label, String[] args) {
if (HuskHomes.settings.doWarpCommand()) {
if (HuskHomes.getSettings().doWarpCommand()) {
if (args.length == 1) {
String warpName = args[0];
if (DataManager.warpExists(warpName)) {