Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
- index 4133ba8..4c5ba69 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
- @@ -12,8 +12,10 @@
- import net.sf.l2j.gameserver.handler.AdminCommandHandler;
- import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
- +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
- +import net.sf.l2j.gameserver.handler.VoicedCommandHandler;
- import net.sf.l2j.gameserver.model.World;
- import net.sf.l2j.gameserver.model.WorldObject;
- import net.sf.l2j.gameserver.model.actor.Npc;
- import net.sf.l2j.gameserver.model.actor.instance.OlympiadManagerNpc;
- @@ -140,8 +142,31 @@
- activeChar.sendPacket(html);
- activeChar.sendPacket(ActionFailed.STATIC_PACKET);
- }
- + if (_command.startsWith("voice_"))
- + {
- + String params = "";
- + String command;
- + if (_command.indexOf(" ") != -1)
- + {
- + command = _command.substring(6, _command.indexOf(" "));
- + params = _command.substring(_command.indexOf(" ") + 1);
- + }
- + else
- + {
- + command = _command.substring(6);
- + }
- +
- + IVoicedCommandHandler vc = VoicedCommandHandler.getInstance().getHandler(command);
- +
- + if (vc == null)
- + {
- + return;
- + }
- + vc.useVoicedCommand(command, activeChar, params);
- + }
- +
- else if (_command.startsWith("player_help "))
- {
- playerHelp(activeChar, _command.substring(12));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement