Guest User

Untitled

a guest
Jul 7th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2004-2013 L2J DataPack
  3. *
  4. * This file is part of L2J DataPack.
  5. *
  6. * L2J DataPack is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J DataPack is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19.  
  20. /**
  21. * @author HyperByter
  22. *
  23. */
  24.  
  25. package handlers.bypasshandlers;
  26.  
  27. import l2dc.CastleBattle.CastleBattle;
  28.  
  29. import com.l2jserver.gameserver.handler.IBypassHandler;
  30. import com.l2jserver.gameserver.model.actor.L2Character;
  31. import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
  32.  
  33. public class CastleBattleLink implements IBypassHandler
  34. {
  35. private static final String[] COMMANDS =
  36. {
  37. "CB_bypass"
  38. };
  39.  
  40. @Override
  41. public boolean useBypass(String command, L2PcInstance activeChar, L2Character target)
  42. {
  43. CastleBattle.getInstance().CB_bypass(command.replace("CB_bypass ", ""), activeChar);
  44. return true;
  45. }
  46.  
  47. @Override
  48. public String[] getBypassList()
  49. {
  50. return COMMANDS;
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment