Class AdminCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.AdminCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=OTHER,
label="Admin?")
public class AdminCondition
extends Object
implements ChatCondition
Is the player an admin?
-
Constructor Summary
ConstructorDescriptionCreates a new AdminCondition for high level admins.AdminCondition(int requiredAdminlevel)
AdminCondition checks the adminlevel of the player -
Method Summary
-
Constructor Details
-
AdminCondition
public AdminCondition()Creates a new AdminCondition for high level admins. -
AdminCondition
AdminCondition checks the adminlevel of the player- Parameters:
requiredAdminlevel
- minimum admin level
-
-
Method Details
-
fire
Description copied from interface:PreTransitionCondition
can the transition be done?- Specified by:
fire
in interfaceChatCondition
- Specified by:
fire
in interfacePreTransitionCondition
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidentity
- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-