Renames strings in onCommand to args for consistency
This commit is contained in:
parent
8ff30ed03f
commit
f12306426b
@ -25,7 +25,7 @@ public class CommandReload implements CommandExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s,
|
||||
@NotNull String[] strings) {
|
||||
@NotNull String[] args) {
|
||||
if (commandSender instanceof Player) {
|
||||
Player player = (Player) commandSender;
|
||||
if (!player.hasPermission("stargate.reload")) {
|
||||
|
@ -28,12 +28,12 @@ public class CommandStarGate implements CommandExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s,
|
||||
@NotNull String[] strings) {
|
||||
if (strings.length > 0) {
|
||||
if (strings[0].equalsIgnoreCase("about")) {
|
||||
return new CommandAbout().onCommand(commandSender, command, s, strings);
|
||||
} else if (strings[0].equalsIgnoreCase("reload")) {
|
||||
return new CommandReload(plugin).onCommand(commandSender, command, s, strings);
|
||||
@NotNull String[] args) {
|
||||
if (args.length > 0) {
|
||||
if (args[0].equalsIgnoreCase("about")) {
|
||||
return new CommandAbout().onCommand(commandSender, command, s, args);
|
||||
} else if (args[0].equalsIgnoreCase("reload")) {
|
||||
return new CommandReload(plugin).onCommand(commandSender, command, s, args);
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user