mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Encapsulate some more variables
Refactor Settings class a bit and move header straight to the file
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user