Addition of client protocol version at character info menu.
This commit is contained in:
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1180,6 +1180,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1199,6 +1199,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1199,6 +1199,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1199,6 +1199,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1199,6 +1199,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1199,6 +1199,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1199,6 +1199,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1199,6 +1199,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
</table>
|
</table>
|
||||||
</center><br>
|
</center><br>
|
||||||
<table width=270>
|
<table width=270>
|
||||||
<tr><td width=135>Account: <font color="LEVEL"><a action="bypass -h admin_find_account %name%">%account%</a></font></td><td width=135>IP: <font color="LEVEL"><a action="bypass -h admin_find_ip %ip%">%ip%</a></font></td></tr>
|
<tr><td width=135>Account: <font color="LEVEL"><a action="bypass -h admin_find_account %name%">%account%</a></font></td><td width=135>IP: <font color="LEVEL"><a action="bypass -h admin_find_ip %ip%">%ip%</a></font></td><td width=135>Protocol: <font color="LEVEL">%protocol%</font></td></tr>
|
||||||
<tr><td width=135>Name: %name%</td><td width=135>Level: %level%</td></tr>
|
<tr><td width=195>Name: %name%</td><td width=75>Level: %level%</td></tr>
|
||||||
<tr><td width=135>Clan: %clan%</td><td width=135>Exp: %xp%</td></tr>
|
<tr><td width=195>Clan: %clan%</td><td width=75>Exp: %xp%</td></tr>
|
||||||
<tr><td width=135>Class: %class%</td><td width=135>SP: %sp%</td></tr>
|
<tr><td width=195>Class: %class%</td><td width=75>SP: %sp%</td></tr>
|
||||||
</table>
|
</table>
|
||||||
<table width=270>
|
<table width=270>
|
||||||
<tr><td width=270>Character Coordinates: %x% %y% %z%</td></tr>
|
<tr><td width=270>Character Coordinates: %x% %y% %z%</td></tr>
|
||||||
|
|||||||
@@ -1072,6 +1072,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", String.valueOf(player.getAccessLevel().getLevel()));
|
adminReply.replace("%access%", String.valueOf(player.getAccessLevel().getLevel()));
|
||||||
adminReply.replace("%account%", account);
|
adminReply.replace("%account%", account);
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
activeChar.sendPacket(adminReply);
|
activeChar.sendPacket(adminReply);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -117,6 +117,8 @@ public class GameClient extends MMOClient<MMOConnection<GameClient>> implements
|
|||||||
|
|
||||||
private long _last_received_packet_action_time = 0;
|
private long _last_received_packet_action_time = 0;
|
||||||
|
|
||||||
|
private int _protocolVersion;
|
||||||
|
|
||||||
public GameClient(MMOConnection<GameClient> con)
|
public GameClient(MMOConnection<GameClient> con)
|
||||||
{
|
{
|
||||||
super(con);
|
super(con);
|
||||||
@@ -1022,4 +1024,14 @@ public class GameClient extends MMOClient<MMOConnection<GameClient>> implements
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public class ProtocolVersion extends GameClientPacket
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
getClient().setProtocolVersion(_version);
|
||||||
getClient().sendPacket(new KeyPacket(getClient().enableCrypt()));
|
getClient().sendPacket(new KeyPacket(getClient().enableCrypt()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,14 +32,17 @@
|
|||||||
<td width=120>Account Name: </td><td><font color="LEVEL"><a action="bypass -h admin_find_account %name%">%account%</a></font></td>
|
<td width=120>Account Name: </td><td><font color="LEVEL"><a action="bypass -h admin_find_account %name%">%account%</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Account IP: </td><td><font color="LEVEL"><a action="bypass -h admin_find_ip %ip%">%ip%</a></font></td>
|
<td>Account IP: </td><td><font color="LEVEL"><a action="bypass -h admin_find_ip %ip%">%ip%</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>HWID: </td><td><font color="LEVEL"><a action="bypass -h admin_find_hwid %hwid%">%hwid%</a></font></td>
|
<td>HWID: </td><td><font color="LEVEL"><a action="bypass -h admin_find_hwid %hwid%">%hwid%</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1087,6 +1087,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", hwid);
|
adminReply.replace("%hwid%", hwid);
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.getInstanceId() > 0 ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.getInstanceId() > 0 ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -79,7 +79,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -652,14 +654,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,14 +32,17 @@
|
|||||||
<td width=120>Account Name: </td><td><font color="LEVEL"><a action="bypass -h admin_find_account %name%">%account%</a></font></td>
|
<td width=120>Account Name: </td><td><font color="LEVEL"><a action="bypass -h admin_find_account %name%">%account%</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Account IP: </td><td><font color="LEVEL"><a action="bypass -h admin_find_ip %ip%">%ip%</a></font></td>
|
<td>Account IP: </td><td><font color="LEVEL"><a action="bypass -h admin_find_ip %ip%">%ip%</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>HWID: </td><td><font color="LEVEL"><a action="bypass -h admin_find_hwid %hwid%">%hwid%</a></font></td>
|
<td>HWID: </td><td><font color="LEVEL"><a action="bypass -h admin_find_hwid %hwid%">%hwid%</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1092,6 +1092,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", hwid);
|
adminReply.replace("%hwid%", hwid);
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.getInstanceId() > 0 ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.getInstanceId() > 0 ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -82,7 +82,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -664,14 +666,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1176,6 +1176,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1176,6 +1176,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1176,6 +1176,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1176,6 +1176,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1176,6 +1176,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1164,6 +1164,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
<td>Punishment: </td><td><font color="LEVEL"><a action="bypass -h admin_punishment player %name%">Info</a></font></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Client Protocol: </td><td><font color="LEVEL">%protocol%</font></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1176,6 +1176,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
adminReply.replace("%access%", player.getAccessLevel().getLevel() + " (" + player.getAccessLevel().getName() + ")");
|
||||||
adminReply.replace("%account%", player.getAccountName());
|
adminReply.replace("%account%", player.getAccountName());
|
||||||
adminReply.replace("%ip%", ip);
|
adminReply.replace("%ip%", ip);
|
||||||
|
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||||
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
adminReply.replace("%hwid%", (player.getClient() != null) && (player.getClient().getHardwareInfo() != null) ? player.getClient().getHardwareInfo().getMacAddress() : "Unknown");
|
||||||
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
adminReply.replace("%ai%", player.getAI().getIntention().name());
|
||||||
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
adminReply.replace("%inst%", player.isInInstance() ? "<tr><td>InstanceId:</td><td><a action=\"bypass -h admin_instance_spawns " + player.getInstanceId() + "\">" + player.getInstanceId() + "</a></td></tr>" : "");
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
|
|
||||||
private volatile boolean _isDetached = false;
|
private volatile boolean _isDetached = false;
|
||||||
|
|
||||||
private boolean _protocol;
|
private int _protocolVersion;
|
||||||
|
|
||||||
|
private boolean _protocolOk;
|
||||||
|
|
||||||
private int[][] trace;
|
private int[][] trace;
|
||||||
|
|
||||||
@@ -650,14 +652,24 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProtocolVersion(int version)
|
||||||
|
{
|
||||||
|
_protocolVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getProtocolVersion()
|
||||||
|
{
|
||||||
|
return _protocolVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isProtocolOk()
|
public boolean isProtocolOk()
|
||||||
{
|
{
|
||||||
return _protocol;
|
return _protocolOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProtocolOk(boolean b)
|
public void setProtocolOk(boolean b)
|
||||||
{
|
{
|
||||||
_protocol = b;
|
_protocolOk = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClientTracert(int[][] tracert)
|
public void setClientTracert(int[][] tracert)
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class ProtocolVersion implements IClientIncomingPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
client.sendPacket(new KeyPacket(client.enableCrypt(), 1));
|
||||||
|
client.setProtocolVersion(_version);
|
||||||
client.setProtocolOk(true);
|
client.setProtocolOk(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user