Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.sf.l2j.gameserver.handler.voiced.impl;
- import net.sf.l2j.commons.config.Config;
- import net.sf.l2j.gameserver.handler.voiced.IVoicedCommandHandler;
- import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- public class PremiumInfo implements IVoicedCommandHandler
- {
- private static final String[] _voicedCommands =
- {
- "premium"
- };
- @Override
- public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
- {
- if (!Config.PREMIUM_ITEM_ENABLED)
- {
- return false;
- }
- if (command.equalsIgnoreCase("premium"))
- {
- activeChar.showPremiumInfo();
- }
- return true;
- }
- @Override
- public String[] getVoicedCommandList()
- {
- return _voicedCommands;
- }
- }
Add Comment
Please, Sign In to add comment