Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- *
- * http://www.gnu.org/copyleft/gpl.html
- */
- package handlers.admincommandhandlers;
- import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
- import net.sf.l2j.gameserver.instancemanager.TownWar;
- import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- /**
- * This class handles following admin commands: - delete = deletes target
- *
- * @version $Revision: 1.2.2.1.2.4 $ $Date: 2005/04/11 10:05:56 $
- */
- public class AdminTownWar implements IAdminCommandHandler
- {
- private static final String[] ADMIN_COMMANDS =
- {
- "admin_tw_start",
- "admin_tw_end"
- };
- public boolean useAdminCommand(String command, L2PcInstance activeChar)
- {
- if (command.startsWith("admin_tw_start"))
- TownWar.getInstance().init(activeChar);
- else if (command.startsWith("admin_tw_end"))
- TownWar.getInstance().end(activeChar);
- return true;
- }
- public String[] getAdminCommandList()
- {
- return ADMIN_COMMANDS;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment