Detached clients should be removed from online count.
This commit is contained in:
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
@@ -63,15 +63,14 @@ public class AdminOnline implements IAdminCommandHandler
|
|||||||
|
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (player.isOnline())
|
|
||||||
{
|
|
||||||
online++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player.isInOfflineMode())
|
if (player.isInOfflineMode())
|
||||||
{
|
{
|
||||||
offline++;
|
offline++;
|
||||||
}
|
}
|
||||||
|
else if (player.isOnline())
|
||||||
|
{
|
||||||
|
online++;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isInsideZone(ZoneId.PEACE))
|
if (player.isInsideZone(ZoneId.PEACE))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user