Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package handlers.voicedcommandhandlers;
- import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
- import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jserver.gameserver.network.SystemMessageId;
- public class Title implements IVoicedCommandHandler
- {
- private static final String[] _voicedCommands =
- {
- "title"
- };
- private String _title;
- @Override
- public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
- {
- if (command.startsWith("title"))
- {
- activeChar.setTitle(_title);
- activeChar.sendPacket(SystemMessageId.TITLE_CHANGED);
- }
- return true;
- }
- @Override
- public String[] getVoicedCommandList()
- {
- return _voicedCommands;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement