Use ENTERING ConnectionState checks when possible.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user