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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final UdpConnectionprotected static final Stringprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommandBase(String string, String string2, String string3, UdpConnection udpConnection) -
Method Summary
Modifier and TypeMethodDescriptionstatic intaccessLevelToInt(String string) booleanprotected abstract StringCommand()Execute()static ClassfindCommandCls(String string) protected intprotected static ObjectgetAnnotation(Class javaClass, Class javaClass2) protected StringgetCommandArg(Integer integer) intprotected CommandArgs[]static StringgetCommandName(Class javaClass) protected Stringprotected StringgetHelp()static Stringprotected RequiredRightstatic Class[]booleanhasHelp()booleanhasOptionalArg(Integer integer) booleanstatic booleanisDisabled(Class javaClass) booleanboolean
-
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()
-