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