Detached clients should be removed from online count.

This commit is contained in:
MobiusDevelopment
2019-12-15 11:59:15 +00:00
parent 9e5c2fc320
commit 52f1af19cb
17 changed files with 68 additions and 85 deletions

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {

View File

@@ -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))
{ {