mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
XMage 1.4.17V0
This commit is contained in:
parent
b2bd7f5e24
commit
8b62eece68
43 changed files with 182 additions and 157 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>org.mage</groupId>
|
||||
<artifactId>mage-root</artifactId>
|
||||
<version>1.4.16</version>
|
||||
<version>1.4.17</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.mage</groupId>
|
||||
|
|
|
|||
|
|
@ -388,8 +388,9 @@ class TableUserModel extends AbstractTableModel {
|
|||
public static final int POS_GAME_INFO = 4;
|
||||
public static final int POS_USER_STATE = 5;
|
||||
public static final int POS_CHAT_MUTE = 6;
|
||||
public static final int POS_CLIENT_VERSION = 7;
|
||||
|
||||
private final String[] columnNames = new String[]{"User Name", "Host", "Time Connected", "SessionId", "Gameinfo", "User state", "Chat mute"};
|
||||
private final String[] columnNames = new String[]{"User Name", "Host", "Time Connected", "SessionId", "Gameinfo", "User state", "Chat mute", "Client Version"};
|
||||
private UserView[] users = new UserView[0];
|
||||
private static final DateFormat formatterTime = new SimpleDateFormat("HH:mm:ss");
|
||||
private static final DateFormat formatterTimeStamp = new SimpleDateFormat("yy-M-dd HH:mm:ss");
|
||||
|
|
@ -417,7 +418,7 @@ class TableUserModel extends AbstractTableModel {
|
|||
case POS_HOST:
|
||||
return users[arg0].getHost();
|
||||
case POS_TIME_CONNECTED:
|
||||
return formatterTime.format(users[arg0].getConnectionTime());
|
||||
return formatterTime.format(users[arg0].getTimeConnected());
|
||||
case POS_SESSION_ID:
|
||||
return users[arg0].getSessionId();
|
||||
case POS_GAME_INFO:
|
||||
|
|
@ -429,6 +430,8 @@ class TableUserModel extends AbstractTableModel {
|
|||
return "";
|
||||
}
|
||||
return formatterTimeStamp.format(users[arg0].getMuteChatUntil());
|
||||
case POS_CLIENT_VERSION:
|
||||
return users[arg0].getClientVersion();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue