VoicedCommandHandler.java Help Understand

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

VoicedCommandHandler.java Help Understand

Post 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! :)
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: VoicedCommandHandler.java Help Understand

Post by UnAfraid »

Take a look at data/scripts/handlers/voicecommandhandlers/
Image
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: VoicedCommandHandler.java Help Understand

Post by HappyLDE »

Ok that did the trick, thanks! :twisted:
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
Post Reply