- Joined
- Jan 29, 2009
- Messages
- 7
- Reaction score
- 0
Ok, um.. second release but this isn't tested sorry... I'm not a GM or admin in any server so i can't really test it properly.
Anyway, this command basically mutes everyone in the map. This is useful for events and stuff when you don't want people spamming. If this way works, it also saves coders a lot of time. I know another way to do this is to create a new table in the SQL and stuff but yeah... Here it is:
Anyway, this command basically mutes everyone in the map. This is useful for events and stuff when you don't want people spamming. If this way works, it also saves coders a lot of time. I know another way to do this is to create a new table in the SQL and stuff but yeah... Here it is:
Code:
} else if (splitted[0].equals("!mutemap")) {
for (MapleCharacter mch : c.getPlayer().getMap().getCharacters()) {
mch.canPartyChat(!mch.getCanPartyChat());
mch.canTalk(!mch.getCanTalk());
mch.canSmega(!mch.getCanSmega());
mch.canGuildChat(!mch.getCanGuildChat());
mch.canWhisper(!mch.getCanWhisper());
mc.dropMessage("Map muted.");
}