updated some annotations

This commit is contained in:
Samuel Pizette
2022-12-05 20:08:35 -05:00
parent 692eaf6836
commit 0669a57e4b
3 changed files with 6 additions and 6 deletions

View File

@@ -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.

View File

@@ -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);
}

View File

@@ -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);
}