updated some annotations
This commit is contained in:
@@ -24,14 +24,14 @@ public interface CommandBase {
|
||||
*
|
||||
* @return The name.
|
||||
*/
|
||||
String getName();
|
||||
@NotNull String getName();
|
||||
|
||||
/**
|
||||
* Get command permission.
|
||||
*
|
||||
* @return The permission.
|
||||
*/
|
||||
String getPermission();
|
||||
@Nullable String getPermission();
|
||||
|
||||
/**
|
||||
* If only players can execute the command.
|
||||
|
||||
@@ -41,7 +41,7 @@ public abstract class PluginCommand implements PluginCommandBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
public @NotNull String getName() {
|
||||
return delegate.getName();
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public abstract class PluginCommand implements PluginCommandBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommandBase addSubcommand(@NotNull CommandBase command) {
|
||||
public @NotNull CommandBase addSubcommand(@NotNull CommandBase command) {
|
||||
return delegate.addSubcommand(command);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public abstract class Subcommand implements CommandBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
public @NotNull String getName() {
|
||||
return delegate.getName();
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public abstract class Subcommand implements CommandBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommandBase addSubcommand(@NotNull CommandBase command) {
|
||||
public @NotNull CommandBase addSubcommand(@NotNull CommandBase command) {
|
||||
return delegate.addSubcommand(command);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user