Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[HELP] @gm prob

Newbie Spellweaver
Joined
Oct 18, 2017
Messages
56
Reaction score
1
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>
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;
I added > Server.java:
PHP:
    public void broadcastGMMessage(byte[] sendYellowTip) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
 
Newbie Spellweaver
Joined
Sep 4, 2017
Messages
5
Reaction score
0
Remove this from your code:
PHP:
if (sub.length < 3) {
chr.dropMessage(5, "Your message was too short. Please do @gm <text>");
break;
}
 
Upvote 0
Newbie Spellweaver
Joined
Oct 18, 2017
Messages
56
Reaction score
1
i tried, but still no
Remove this from your code:
PHP:
if (sub.length < 3) {
chr.dropMessage(5, "Your message was too short. Please do @gm <text>");
break;
}
i tried, but still no

i think prob from public void broadcastGMMessage i forget to add func
 
Upvote 0
Back
Top