Jump to content
  • 0

Problem with admin command


Question

Posted

Hello, i have broblem with admin command, then i used it i get stucked:

/*
package com.l2jfrozen.gameserver.handler.admincommandhandlers;

import com.l2jfrozen.gameserver.handler.IAdminCommandHandler;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.entity.event.PeloponnesianWar;

/**
* 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 AdminSparta implements IAdminCommandHandler
{

private static final String[] ADMIN_COMMANDS =
{
	"admin_sparta"
};

@Override
public boolean useAdminCommand(String command, L2PcInstance activeChar)
{
	if (command.equals("admin_sparta"))
		PeloponnesianWar.startevent();
	return false;
}

public String[] getAdminCommandList()
{
	return ADMIN_COMMANDS;
}


}

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...