added serverLog to API
This commit is contained in:
parent
4abcdd5579
commit
08e086084c
4 changed files with 14 additions and 15 deletions
|
@ -4,7 +4,7 @@ function playerCommand(player_id, command, args) {
|
|||
} else if(command == "message") {
|
||||
message(player_id, args);
|
||||
} else if(command == "ping") {
|
||||
GGS.sendCommand(player_id, "pong", args);
|
||||
GGS.sendCommand(player_id, "pong", GGS.serverInfo() + "");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ function changeNick(player_id, nick) {
|
|||
GGS.localStorage.setItem("nick_" + player_id, nick);
|
||||
|
||||
if (!old_nick) {
|
||||
GGS.sendCommandToAll("notice", nick + " joined ä");
|
||||
GGS.sendCommandToAll("notice", nick + " joined");
|
||||
} else {
|
||||
GGS.sendCommandToAll("notice", old_nick + " is now called " + nick);
|
||||
}
|
||||
|
|
Reference in a new issue