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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock