- text fixes CallbackClientImpl

This commit is contained in:
Jeff Wadsworth 2022-03-07 16:03:25 -06:00
parent baece6e241
commit 153998cae3

View file

@ -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);
} }