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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..