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

@@ -10,7 +10,7 @@ public class SetspawnCommand extends CommandBase {
@Override
protected boolean onCommand(Player p, Command command, String label, String[] args) {
if (HuskHomes.settings.doSpawnCommand()) {
if (HuskHomes.getSettings().doSpawnCommand()) {
SettingHandler.setSpawnLocation(p.getLocation());
p.getLocation().getWorld().setSpawnLocation(p.getLocation());
MessageManager.sendMessage(p, "set_spawn_success");