Page 1 of 1

VoicedCommandHandler.java Help Understand

Posted: Fri Oct 18, 2013 8:55 am
by HappyLDE
Find Revision
L2J Revision 5937:
L2JDP Revision 9981:

Hellow!

How does VoicedCommandHandler.java work ? I need to add it manually to GameServer.java to get it working?

What i did so far (is this the right way?): GameServer.java

Code: Select all

import com.l2jserver.gameserver.handler.UserCommandHandler;import com.l2jserver.gameserver.handler.VoicedCommandHandler; ..myNewClassThatNeedsToUseTheVoicedCommands.getInstance();        UserCommandHandler.getInstance();VoicedCommandHandler.getInstance();_log.config("UserCommandHandler: Loaded " + UserCommandHandler.getInstance().size() + " handlers.");_log.config("VoicedCommandHandler: Loaded " + VoicedCommandHandler.getInstance().size() + " handlers.");.. 
How do i add commands like .join .info to it (so that it calls my functions)?

Any Help is Appreciated! :)

Re: VoicedCommandHandler.java Help Understand

Posted: Fri Oct 18, 2013 9:04 am
by UnAfraid
Take a look at data/scripts/handlers/voicecommandhandlers/

Re: VoicedCommandHandler.java Help Understand

Posted: Fri Oct 18, 2013 11:51 am
by HappyLDE
Ok that did the trick, thanks! :twisted: