chat gem added

This commit is contained in:
Christian Kroll 2012-06-14 00:23:25 +02:00
parent 9b8791a468
commit ef9f37e12f
1 changed files with 12 additions and 0 deletions

View File

@ -274,6 +274,18 @@ public class TheGame implements StatemachineListener, GuiEventListener, IRCEvent
disco();
} else if(message.startsWith("disco stop")) {
discoStop();
} else if(message.startsWith("gem activate")) {
java.util.Random random = new java.util.Random();
int scry = random.nextInt(100);
if (scry >= 98) {
ircClient.say("Perfect Gem Activated");
} else if (scry >= 90) {
ircClient.say("Moooooooo!");
} else {
ircClient.say("Gem Activated");
}
} else if(message.startsWith("gem deactivate")) {
ircClient.say("Gem Deactivated");
} else {
ircClient.say("y u no use valid command?");
}