hey all, I'm trying to add @gm hi.. to MoopleDEV
is work but I don't see message when I type @gm hi
message show all the time when I send: Your message was too short. Please do @gm <text>
I added > Server.java:
is work but I don't see message when I type @gm hi
message show all the time when I send: Your message was too short. Please do @gm <text>
PHP:
case "gm": if (sub.length < 3) {
chr.dropMessage(5, "Your message was too short. Please do @gm <text>");
break;
}
String message = joinStringFrom(sub, 1);
Server.getInstance().broadcastGMssage(MaplePacketCreator.sendYellowTip("[GM MESSAGE]:" + MapleCharacter.makeMapleReadable(chr.getName()) + ": " + message));
Server.getInstance().broadcastGMMessage(MaplePacketCreator.serverNotice(1, message));
FilePrinter.printError("gm.txt", MapleCharacter.makeMapleReadable(chr.getName()) + ": " + message + "\r\n");
chr.dropMessage(5, "Your message '" + message + "' was sent to GMs.");
chr.dropMessage(5, tips[Randomizer.nextInt(tips.length)]);
break;
PHP:
public void broadcastGMMessage(byte[] sendYellowTip) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
}