Solved bug with text encoding and changed default host to 0.0.0.0
This commit is contained in:
@ -111,7 +111,7 @@ public class WSServer extends WebSocketServer {
|
||||
try {
|
||||
conn.send(content.toJSON());
|
||||
}catch(WebsocketNotConnectedException e) {
|
||||
Bukkit.getLogger().warning("Tried to send message to a disconnected client.");
|
||||
Bukkit.getLogger().warning(Internationalization.getPhrase("error-disconnected-client"));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public class ExecCommand implements WSCommand {
|
||||
@Override
|
||||
public void execute(WSServer wsServer, WebSocket conn, String command) {
|
||||
|
||||
Bukkit.getLogger().info(Internationalization.getPhrase("cmd-executed-console", conn.getRemoteSocketAddress(), command));
|
||||
Bukkit.getLogger().info(Internationalization.getPhrase("cmd-executed-console", conn.getRemoteSocketAddress(), Internationalization.utf8ToIso(command)));
|
||||
ConsoleCommandSender sender = Bukkit.getServer().getConsoleSender();
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user