Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2J_Server
- Index: java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java
- ===================================================================
- --- java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java (revision 5563)
- +++ java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java (working copy)
- @@ -25,6 +25,8 @@
- import com.l2jserver.gameserver.handler.BypassHandler;
- import com.l2jserver.gameserver.handler.IAdminCommandHandler;
- import com.l2jserver.gameserver.handler.IBypassHandler;
- +import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
- +import com.l2jserver.gameserver.handler.VoicedCommandHandler;
- import com.l2jserver.gameserver.model.L2CharPosition;
- import com.l2jserver.gameserver.model.L2Object;
- import com.l2jserver.gameserver.model.L2World;
- @@ -117,6 +119,17 @@
- ach.useAdminCommand(_command, activeChar);
- }
- }
- + else if (_command.startsWith(".")) {
- + String command = _command.substring(1).split(" ")[0];
- + String params = _command.substring(1).split(" ").length > 1 ? _command.substring(1).split(" ")[1] : "";
- + IVoicedCommandHandler vch = VoicedCommandHandler.getInstance().getHandler(command);
- + if (vch == null)
- + {
- + _log.warning(activeChar + " requested not registered admin command '" + command + "'");
- + return;
- + }
- + vch.useVoicedCommand(command, activeChar, params);
- + }
- else if (_command.equals("come_here") && activeChar.isGM())
- {
- comeHere(activeChar);
Advertisement
Add Comment
Please, Sign In to add comment