Sets spawn island protection ranges to be the max by default.

This commit is contained in:
tastybento 2020-03-17 18:20:02 -07:00
parent 3f4bd2418f
commit 5ca51f244e

View File

@ -72,6 +72,8 @@ public class AdminSetspawnCommand extends ConfirmableCommand {
} }
getIslands().setSpawn(i); getIslands().setSpawn(i);
i.setSpawnPoint(World.Environment.NORMAL, user.getLocation()); i.setSpawnPoint(World.Environment.NORMAL, user.getLocation());
// Set the island's range to the full island space because it is spawn
i.setProtectionRange(i.getRange());
user.sendMessage("commands.admin.setspawn.success"); user.sendMessage("commands.admin.setspawn.success");
} }
} }