mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-18 21:32:04 +01:00
Sets spawn island protection ranges to be the max by default.
This commit is contained in:
parent
3f4bd2418f
commit
5ca51f244e
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user