Class AdministrationAction
java.lang.Object
games.stendhal.server.actions.admin.AdministrationAction
- All Implemented Interfaces:
ActionListener
- Direct Known Subclasses:
AdminNoteAction
,AlterAction
,AlterKillAction
,BanAction
,GagAction
,GhostModeAction
,InspectAction
,InspectKillAction
,InspectQuestAction
,InvisibleAction
,JailAction
,JailReportAction
,RemoteViewAction
,StoreMessageOnBehalfOfPlayerAction
,SummonAction
,SummonAtAction
,SupportAnswerAction
,TeleClickModeAction
,TeleportAction
,TeleportToAction
,TellAllAction
Most /commands for admins are handled here.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.log4j.Logger
static int
static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Integer
getLevelForCommand(String command)
protected Entity
get the Entity-object of the specified target.protected Entity
getTargetAnyZone(Player player, RPAction action)
static boolean
isPlayerAllowedToExecuteAdminCommand(Player player, String command, boolean verbose)
void
processes the requested action.protected abstract void
static void
static void
registerCommandLevel(String command, int minLevel)
-
Field Details
-
REQUIRED_ADMIN_LEVEL_FOR_SUPPORT
public static final int REQUIRED_ADMIN_LEVEL_FOR_SUPPORT- See Also:
- Constant Field Values
-
REQUIRED_ADMIN_LEVEL_FOR_SUPER
public static final int REQUIRED_ADMIN_LEVEL_FOR_SUPER- See Also:
- Constant Field Values
-
logger
protected static final org.apache.log4j.Logger logger
-
-
Constructor Details
-
AdministrationAction
public AdministrationAction()
-
-
Method Details
-
registerActions
public static void registerActions() -
registerCommandLevel
-
getLevelForCommand
-
isPlayerAllowedToExecuteAdminCommand
-
onAction
Description copied from interface:ActionListener
processes the requested action.- Specified by:
onAction
in interfaceActionListener
- Parameters:
player
- the caller of the actionaction
- the action to be performed
-
perform
-
getTargetAnyZone
-
getTarget
get the Entity-object of the specified target.- Parameters:
player
-action
-- Returns:
- the Entity or null if it does not exist
-