Mute a player

Re: [Release] Mute a player

iGoofy you are a great coder, but the part that i hate of you is when you put things ANTILEECHERs in your realease, what is the point of that?
 
Re: [Release] Mute a player

Code:
        public boolean getCanTalk() {
            return this.canTalk;
        }
        
        public void canTalk(boolean talk) {
            this.canTalk = talk;            
        }
Code:
if (c.getPlayer().getCanTalk()) {

It should be this.
 
Re: [Release] Mute a player

...
D: I can't believe I didn't notice that. Thanks, airflow.

Maybe you should use an integer instead for easier saving into the database. This way you could have different levels of !mute (General Chat mute, Party mute, Whisper mute, Buddy mute, and Guild mute..?).
 
Re: [Release] Mute a player

Maybe you should use an integer instead for easier saving into the database. This way you could have different levels of !mute (General Chat mute, Party mute, Whisper mute, Buddy mute, and Guild mute..?).
Sounds like a good idea.

EDIT: Alright, done with the saving aspect of it. Just need to write a query for the muteLevel column and work in the checks for the chats.
 
Re: [Release] Mute a player

You could make an account mute as well. <3
 
Re: [Release] Mute a player

init:
deps-jar:
Compiling 1 source file to D:\Documents and Settings\Assaf\Desktop\AssafPack V.1.1\AssafPackV_5.1\build\classes
D:\Documents and Settings\Assaf\Desktop\AssafPack V.1.1\AssafPackV_5.1\AssafMS Source\src\net\sf\odinms\net\channel\handler\GeneralchatHandler.java:35: cannot find symbol
symbol : method getInstance()
location: class net.sf.odinms.client.messages.CommandProcessor
if (!CommandProcessor.getInstance().processCommand(c, text)) {
D:\Documents and Settings\Assaf\Desktop\AssafPack V.1.1\AssafPackV_5.1\AssafMS Source\src\net\sf\odinms\net\channel\handler\GeneralchatHandler.java:42: cannot find symbol
symbol : class MapleCharacter
location: class net.sf.odinms.net.channel.handler.GeneralchatHandler
MapleCharacter player = c.getPlayer();
D:\Documents and Settings\Assaf\Desktop\AssafPack V.1.1\AssafPackV_5.1\AssafMS Source\src\net\sf\odinms\net\channel\handler\GeneralchatHandler.java:47: getChatText(int,java.lang.String,int) in net.sf.odinms.tools.MaplePacketCreator cannot be applied to (int,java.lang.String)
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), text));
3 errors
BUILD FAILED (total time: 0 seconds)
 
Back