Class CommandBase
java.lang.Object
zombie.commands.CommandBase
- Direct Known Subclasses:
AddAllToWhiteListCommand
,AddItemCommand
,AddKeyCommand
,AddUserCommand
,AddUserToSafehouseCommand
,AddUserToWhiteListCommand
,AddVehicleCommand
,AddXPCommand
,AlarmCommand
,BanIPCommand
,BanSteamIDCommand
,BanUserCommand
,ChangeOptionCommand
,CheckModsNeedUpdate
,ChopperCommand
,ClearCommand
,ConnectionsCommand
,CreateHorde2Command
,CreateHordeCommand
,DebugPlayerCommand
,GodModeCommand
,GrantAdminCommand
,GunShotCommand
,HelpCommand
,InvisibleCommand
,KickUserCommand
,KickUserFromSafehouseCommand
,LightningCommand
,ListCommand
,LogCommand
,NoClipCommand
,PlayersCommand
,QuitCommand
,ReleaseSafehouseCommand
,ReloadLuaCommand
,ReloadOptionsCommand
,RemoveAdminCommand
,RemoveCommand
,RemoveItemCommand
,RemoveUserFromWhiteList
,RemoveZombiesCommand
,SaveCommand
,ServerMessageCommand
,SetAccessLevelCommand
,SetPasswordCommand
,SetTimeSpeedCommand
,ShowOptionsCommand
,StartRainCommand
,StartStormCommand
,StatisticsCommand
,StopRainCommand
,StopWeatherCommand
,TeleportCommand
,TeleportToCommand
,ThunderCommand
,UnbanIPCommand
,UnbanSteamIDCommand
,UnbanUserCommand
,VoiceBanCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected final UdpConnection
protected static final String
protected final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CommandBase
(String string0, Role role, String string1, UdpConnection udpConnection) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract String
Command()
Execute()
static Class
findCommandCls
(String _command) protected static <T> T
getAnnotation
(Class<T> class1, Class class0) protected String
getCommandArg
(Integer argNumber) int
protected CommandArgs[]
static String
getCommandName
(Class cls) protected String
protected String
getHelp()
static String
protected RequiredCapability
protected Role
getRole()
static Class[]
boolean
hasHelp()
boolean
hasOptionalArg
(Integer argNumber) boolean
static boolean
isDisabled
(Class cls) boolean
boolean
-
Field Details
-
connection
-
argsName
-
defaultArgsName
- See Also:
-
description
-
-
Constructor Details
-
CommandBase
-
-
Method Details
-
getSubClasses
-
findCommandCls
-
getHelp
-
getCommandName
-
isDisabled
-
Execute
- Throws:
SQLException
-
canBeExecuted
public boolean canBeExecuted() -
isCommandComeFromServerConsole
public boolean isCommandComeFromServerConsole() -
getRequiredCapability
-
getCommandArgVariants
-
hasHelp
public boolean hasHelp() -
getHelp
-
getCommandArg
-
hasOptionalArg
-
getCommandArgsCount
public int getCommandArgsCount() -
Command
- Throws:
SQLException
-
parseCommand
public boolean parseCommand() -
getRole
-
getExecutorUsername
-
getCommand
-
getAnnotation
-
isParsingSuccessful
public boolean isParsingSuccessful()
-