- Joined
- Sep 28, 2008
- Messages
- 599
- Reaction score
- 291
I got the idea from "ChickenMS"(it has the @vote command) << So credits to bassoe for giving me idea..zz
First go to src/net/sf/odinms/net/channel/handler/GeneralchatHandler.java
Search for something like this
AND
add
above it
DONE! thats all
Another method command (base by iPlayhard) << just modified it. (chickenMS has this)
NO Flaming..
First go to src/net/sf/odinms/net/channel/handler/GeneralchatHandler.java
Search for something like this
Code:
if (!CommandProcessor.getInstance().processCommand(c, text)) {
add
Code:
MapleCharacter player = c.getPlayer();
String lctext = text.toLowerCase();
if (StringUtil.countCharacters(text, '@') > 3) {
text = "All Vote for ServerName @ http:// ";
if (player.spawned) {
player.removeOne(c);
}
}
DONE! thats all
Another method command (base by iPlayhard) << just modified it. (chickenMS has this)
Code:
} else if (splitted[0].equals("@vote")) {
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), "All vote for the server at http:// or visit the forum!", false, 1));
mc.dropMessage("This command dosent brings you to the vote page. Please go to http:// to vote...");
NO Flaming..

Last edited: