Use ENTERING ConnectionState checks when possible.
This commit is contained in:
parent
6972b74a10
commit
93f0838228
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -630,6 +630,7 @@ public final class GameClient extends MMOClient<MMOConnection<GameClient>> imple
|
||||
{
|
||||
return "[Account: " + accountName + " - IP: " + ip + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName()) + " - Account: " + accountName + " - IP: " + ip + "]";
|
||||
|
@ -321,6 +321,7 @@ public final class FloodProtectorAction
|
||||
|
||||
switch (client.getState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -619,6 +619,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
@ -605,6 +605,7 @@ public final class GameClient extends ChannelInboundHandler<GameClient>
|
||||
{
|
||||
return "[Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
}
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
return "[Character: " + (_player == null ? "disconnected" : _player.getName() + "[" + _player.getObjectId() + "]") + " - Account: " + _accountName + " - IP: " + (address == null ? "disconnected" : address.getHostAddress()) + "]";
|
||||
|
@ -202,6 +202,7 @@ public final class FloodProtectorAction
|
||||
final ConnectionState state = (ConnectionState) _client.getConnectionState();
|
||||
switch (state)
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (_client.getPlayer() != null)
|
||||
|
@ -65,6 +65,7 @@ public class AccountingFormatter extends Formatter
|
||||
|
||||
switch ((ConnectionState) client.getConnectionState())
|
||||
{
|
||||
case ENTERING:
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getPlayer() != null)
|
||||
|
Loading…
Reference in New Issue
Block a user