- Joined
- Apr 18, 2008
- Messages
- 109
- Reaction score
- 0
Re: [Release] GM Chat?
will this work if i just add it to my command proccesor 0_o
will this work if i just add it to my command proccesor 0_o
^.^
so... change it? i think this guy doesnt like me btw, every thread ive ever made hes like yelled at me...
else if (splitted[0].equals("!gmsg")) {
String gmMSG = StringUtil.joinStringFrom(splitted, 1);
for (ChannelServer cservs : ChannelServer.getAllInstances()){
for (MapleCharacter players : cservs.getPlayerStorage().getAllCharacters()) {
if (players.isGM() && players.getGmChatEnabled()) {
players.getClient().getSession().write(MaplePacketCreator.serverNotice(2, player.getName() + " : " + gmMSG));
}
can u like putCode:else if (splitted[0].equals("!gmsg")) { String gmMSG = StringUtil.joinStringFrom(splitted, 1); for (ChannelServer cservs : ChannelServer.getAllInstances()){ for (MapleCharacter players : cservs.getPlayerStorage().getAllCharacters()) { if (players.isGM() && players.getGmChatEnabled()) { players.getClient().getSession().write(MaplePacketCreator.serverNotice(2, player.getName() + " : " + gmMSG)); }
this in Generalchathandler.java?
1. This will not work on multihost. But I guess that doesn't matter to most people.
2. This will be extremely inefficient to people who have a larger user count, as it will have to iterate through every single one of the user when you use one of these commands. But again it doesn't matter to most people.
I'm not trying to be negative. Just pointing out some possible issues with it.
Whisper...Can't their be a way to just use a GM's ign? like let's say you want to use the function couldn't you just input name like bob or w/e so it checks if bob is online if so it sends message to them?