Class CommandInfo
- java.lang.Object
-
- de.dytanic.cloudnet.driver.command.CommandInfo
-
- All Implemented Interfaces:
SerializableObject
public class CommandInfo extends java.lang.Object implements SerializableObject
The commandInfo class allows to easy serialize the command information
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdescriptionThe command description with a basic descriptionprotected java.lang.String[]namesThe configured names by the commandprotected java.lang.StringpermissionThe permission, that is configured by this command, that the command sender should hasprotected java.lang.StringusageThe easiest and important usage for the command
-
Constructor Summary
Constructors Constructor Description CommandInfo()CommandInfo(java.lang.String[] names, java.lang.String permission, java.lang.String description, java.lang.String usage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.String[]getNames()java.lang.StringgetPermission()java.lang.StringgetUsage()voidread(@NotNull ProtocolBuffer buffer)voidwrite(@NotNull ProtocolBuffer buffer)
-
-
-
Field Detail
-
names
protected java.lang.String[] names
The configured names by the command
-
permission
protected java.lang.String permission
The permission, that is configured by this command, that the command sender should has
-
description
protected java.lang.String description
The command description with a basic description
-
usage
protected java.lang.String usage
The easiest and important usage for the command
-
-
Method Detail
-
getNames
public java.lang.String[] getNames()
-
getPermission
public java.lang.String getPermission()
-
getDescription
public java.lang.String getDescription()
-
getUsage
public java.lang.String getUsage()
-
write
public void write(@NotNull @NotNull ProtocolBuffer buffer)- Specified by:
writein interfaceSerializableObject
-
read
public void read(@NotNull @NotNull ProtocolBuffer buffer)- Specified by:
readin interfaceSerializableObject
-
-