private void updateSpawn() { try { spawn = TPlugin.parseLocationString(GearzHub.getInstance().getConfig().getString("spawn")); } catch (NullPointerException ex) { spawn = null; GearzHub.getInstance().getLogger().severe("No spawn point set!"); } }
public void setSpawn(Location location) { GearzHub.getInstance().getConfig().set("spawn", TPlugin.encodeLocationString(location)); updateSpawn(); }