added serverLog to API

This commit is contained in:
Jeena Paradies 2011-05-05 12:51:10 +02:00
parent 4abcdd5579
commit 08e086084c
4 changed files with 14 additions and 15 deletions

View file

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