mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
- text fixes CallbackClientImpl
This commit is contained in:
parent
baece6e241
commit
153998cae3
1 changed files with 45 additions and 45 deletions
|
@ -508,7 +508,7 @@ public class CallbackClientImpl implements CallbackClient {
|
||||||
.append("<br/>").append("<b>/h username </b> - show player's stats (history)")
|
.append("<br/>").append("<b>/h username </b> - show player's stats (history)")
|
||||||
.append("<br/>").append("<b>/w username message</b> - send private message to player (whisper)")
|
.append("<br/>").append("<b>/w username message</b> - send private message to player (whisper)")
|
||||||
.append("<br/>").append("<b>/pings</b> - show players and watchers ping")
|
.append("<br/>").append("<b>/pings</b> - show players and watchers ping")
|
||||||
.append("<br/>").append("<b>/fix</b> - fix freezed game")
|
.append("<br/>").append("<b>/fix</b> - fix frozen game")
|
||||||
.toString(),
|
.toString(),
|
||||||
null, null, MessageType.USER_INFO, ChatMessage.MessageColor.BLUE);
|
null, null, MessageType.USER_INFO, ChatMessage.MessageColor.BLUE);
|
||||||
break;
|
break;
|
||||||
|
@ -628,7 +628,7 @@ public class CallbackClientImpl implements CallbackClient {
|
||||||
logger.fatal("Client error\n", ex);
|
logger.fatal("Client error\n", ex);
|
||||||
String errorMessage = ex.getMessage();
|
String errorMessage = ex.getMessage();
|
||||||
if (errorMessage == null || errorMessage.isEmpty() || errorMessage.equals("Null")) {
|
if (errorMessage == null || errorMessage.isEmpty() || errorMessage.equals("Null")) {
|
||||||
errorMessage = ex.getClass().getSimpleName() + " - look server or client logs for more details";
|
errorMessage = ex.getClass().getSimpleName() + " - look at server or client logs for more details";
|
||||||
}
|
}
|
||||||
frame.showError("Server's error: " + errorMessage);
|
frame.showError("Server's error: " + errorMessage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue