Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P trunk2
- Index: gameserver/head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminDeport.java
- ===================================================================
- --- gameserver/head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminDeport.java (revision 0)
- +++ gameserver/head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminDeport.java (revision 0)
- @@ -0,0 +1,40 @@
- +package com.l2jfrozen.gameserver.handler.admincommandhandlers;
- +
- +import com.l2jfrozen.gameserver.handler.IAdminCommandHandler;
- +import com.l2jfrozen.gameserver.model.L2Object;
- +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
- +
- +/**
- + *
- + * @author Elfocrash
- + */
- +public class AdminDeport implements IAdminCommandHandler
- +{
- + private static String[] _adminCommands =
- + {
- + "admin_deport"
- + };
- +
- + @Override
- + public boolean useAdminCommand(String command, L2PcInstance activeChar)
- + {
- +
- + L2Object target = activeChar.getTarget();
- +
- + if(activeChar.getTarget() instanceof L2PcInstance)
- + {
- + if(command.startsWith("admin_deport"))
- + {
- + ((L2PcInstance) activeChar.getTarget()).teleToLocation(82698, 148638, -3473);
- + }
- + }
- + return false;
- +
- + }
- +
- + @Override
- + public String[] getAdminCommandList()
- + {
- + return _adminCommands;
- + }
- +}
- Index: gameserver/head-src/com/l2jfrozen/gameserver/handler/AdminCommandHandler.java
- ===================================================================
- --- gameserver/head-src/com/l2jfrozen/gameserver/handler/AdminCommandHandler.java (revision 909)
- +++ gameserver/head-src/com/l2jfrozen/gameserver/handler/AdminCommandHandler.java (working copy)
- @@ -40,6 +40,7 @@
- import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminCursedWeapons;
- import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminDMEngine;
- import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminDelete;
- +import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminDeport;
- import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminDonator;
- import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminDoorControl;
- import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminEditChar;
- @@ -173,6 +175,7 @@
- registerAdminCommandHandler(new AdminLogin());
- registerAdminCommandHandler(new AdminCache());
- registerAdminCommandHandler(new AdminLevel());
- + registerAdminCommandHandler(new AdminDeport());
- registerAdminCommandHandler(new AdminQuest());
- registerAdminCommandHandler(new AdminZone());
- registerAdminCommandHandler(new AdminCursedWeapons());
Add Comment
Please, Sign In to add comment