Fixed bug in server monitor.
re-enabled animal spawn in hub.
This commit is contained in:
parent
064b0e8b36
commit
5fdf466722
@ -69,7 +69,7 @@ public class WorldManager extends MiniPlugin
|
||||
Manager = manager;
|
||||
}
|
||||
|
||||
//@EventHandler
|
||||
@EventHandler
|
||||
public void SpawnAnimals(UpdateEvent event)
|
||||
{
|
||||
if (event.getType() != UpdateType.SLOW)
|
||||
|
@ -231,7 +231,7 @@ public class ServerMonitor
|
||||
int availableSlots = serverGroup.getMaxPlayerCount() - serverGroup.getPlayerCount();
|
||||
|
||||
if (availableSlots < 1500)
|
||||
serversToAdd = Math.max(1, (1500 / availableSlots) - serverGroup.getMaxPlayers());
|
||||
serversToAdd = Math.max(1, (1500 - availableSlots) / serverGroup.getMaxPlayers());
|
||||
else if (serversToKill > 0)
|
||||
serversToKill = Math.min(serversToKill, (availableSlots - 1500) / 80);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user