Package zombie.commands
Class CommandBase
java.lang.Object
zombie.commands.CommandBase
- Direct Known Subclasses:
AddAllToWhiteListCommand
,AddItemCommand
,AddUserCommand
,AddUserToWhiteListCommand
,AddVehicleCommand
,AddXPCommand
,AlarmCommand
,BanSteamIDCommand
,BanUserCommand
,ChangeOptionCommand
,CheckModsNeedUpdate
,ChopperCommand
,ClearCommand
,ConnectionsCommand
,CreateHorde2Command
,CreateHordeCommand
,DebugPlayerCommand
,GodModeCommand
,GrantAdminCommand
,GunShotCommand
,HelpCommand
,InvisibleCommand
,KickUserCommand
,LightningCommand
,LogCommand
,NoClipCommand
,PauseCommand
,PlayersCommand
,QuitCommand
,ReleaseSafehouseCommand
,ReloadLuaCommand
,ReloadOptionsCommand
,RemoveAdminCommand
,RemoveUserFromWhiteList
,RemoveZombiesCommand
,ReplayCommands
,SaveCommand
,ServerMessageCommand
,SetAccessLevelCommand
,ShowOptionsCommand
,StartRainCommand
,StartStormCommand
,StatisticsCommand
,StopRainCommand
,StopWeatherCommand
,TeleportCommand
,TeleportToCommand
,ThunderCommand
,UnbanSteamIDCommand
,UnbanUserCommand
,VoiceBanCommand
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected final UdpConnection
protected static final String
protected final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
CommandBase
(String string, String string2, String string3, UdpConnection udpConnection) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
accessLevelToInt
(String string) boolean
protected abstract String
Command()
Execute()
static Class
findCommandCls
(String string) protected int
protected static Object
getAnnotation
(Class javaClass, Class javaClass2) protected String
getCommandArg
(Integer integer) int
protected CommandArgs[]
static String
getCommandName
(Class javaClass) protected String
protected String
getHelp()
static String
protected RequiredRight
static Class[]
boolean
hasHelp()
boolean
hasOptionalArg
(Integer integer) boolean
static boolean
isDisabled
(Class javaClass) boolean
boolean
-
Field Details
-
connection
-
argsName
-
defaultArgsName
- See Also:
-
description
-
-
Constructor Details
-
CommandBase
-
-
Method Details
-
getSubClasses
-
findCommandCls
-
getHelp
-
getCommandName
-
isDisabled
-
accessLevelToInt
-
Execute
- Throws:
SQLException
-
canBeExecuted
public boolean canBeExecuted() -
isCommandComeFromServerConsole
public boolean isCommandComeFromServerConsole() -
getRequiredRights
-
getCommandArgVariants
-
hasHelp
public boolean hasHelp() -
getHelp
-
getCommandArg
-
hasOptionalArg
-
getCommandArgsCount
public int getCommandArgsCount() -
Command
- Throws:
SQLException
-
parseCommand
public boolean parseCommand() -
getAccessLevel
protected int getAccessLevel() -
getExecutorUsername
-
getCommand
-
getAnnotation
-
isParsingSuccessful
public boolean isParsingSuccessful()
-