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
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.log4j.Loggerstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegergetLevelForCommand(String command) protected final Entityget the Entity-object of the specified target.protected final EntitygetTargetAnyZone(Player player, RPAction action) static booleanisPlayerAllowedToExecuteAdminCommand(Player player, String command, boolean verbose) final voidprocesses the requested action.protected abstract voidstatic voidstatic voidregisterCommandLevel(String command, int minLevel)
-
Field Details
-
REQUIRED_ADMIN_LEVEL_FOR_SUPPORT
public static final int REQUIRED_ADMIN_LEVEL_FOR_SUPPORT- See Also:
-
REQUIRED_ADMIN_LEVEL_FOR_SUPER
public static final int REQUIRED_ADMIN_LEVEL_FOR_SUPER- See Also:
-
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:ActionListenerprocesses the requested action.- Specified by:
onActionin 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
-