Beispiel #1
0
 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!");
   }
 }
Beispiel #2
0
 public void setSpawn(Location location) {
   GearzHub.getInstance().getConfig().set("spawn", TPlugin.encodeLocationString(location));
   updateSpawn();
 }