Addition of client protocol version at character info menu.
This commit is contained in:
@@ -22,10 +22,10 @@
|
||||
</table>
|
||||
</center><br>
|
||||
<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>Name: %name%</td><td width=135>Level: %level%</td></tr>
|
||||
<tr><td width=135>Clan: %clan%</td><td width=135>Exp: %xp%</td></tr>
|
||||
<tr><td width=135>Class: %class%</td><td width=135>SP: %sp%</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=195>Name: %name%</td><td width=75>Level: %level%</td></tr>
|
||||
<tr><td width=195>Clan: %clan%</td><td width=75>Exp: %xp%</td></tr>
|
||||
<tr><td width=195>Class: %class%</td><td width=75>SP: %sp%</td></tr>
|
||||
</table>
|
||||
<table width=270>
|
||||
<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("%account%", account);
|
||||
adminReply.replace("%ip%", ip);
|
||||
adminReply.replace("%protocol%", String.valueOf(player.getClient() != null ? player.getClient().getProtocolVersion() : "NULL"));
|
||||
activeChar.sendPacket(adminReply);
|
||||
}
|
||||
|
||||
|
@@ -117,6 +117,8 @@ public class GameClient extends MMOClient<MMOConnection<GameClient>> implements
|
||||
|
||||
private long _last_received_packet_action_time = 0;
|
||||
|
||||
private int _protocolVersion;
|
||||
|
||||
public GameClient(MMOConnection<GameClient> con)
|
||||
{
|
||||
super(con);
|
||||
@@ -1022,4 +1024,14 @@ public class GameClient extends MMOClient<MMOConnection<GameClient>> implements
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void setProtocolVersion(int version)
|
||||
{
|
||||
_protocolVersion = version;
|
||||
}
|
||||
|
||||
public int getProtocolVersion()
|
||||
{
|
||||
return _protocolVersion;
|
||||
}
|
||||
}
|
||||
|
@@ -48,6 +48,7 @@ public class ProtocolVersion extends GameClientPacket
|
||||
}
|
||||
else
|
||||
{
|
||||
getClient().setProtocolVersion(_version);
|
||||
getClient().sendPacket(new KeyPacket(getClient().enableCrypt()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user