Rename ecloud commands to be prefixed with Ecloud to avoid confusion

This commit is contained in:
extendedclip 2020-07-14 10:21:29 -04:00
parent 0634a9cd9b
commit f205146c75
9 changed files with 28 additions and 28 deletions

@ -3,8 +3,8 @@ package me.clip.placeholderapi.commands;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import me.clip.placeholderapi.PlaceholderAPIPlugin; import me.clip.placeholderapi.PlaceholderAPIPlugin;
import me.clip.placeholderapi.commands.command.*; import me.clip.placeholderapi.commands.command.*;
import me.clip.placeholderapi.commands.command.ecloud.InfoCommand; import me.clip.placeholderapi.commands.command.ecloud.EcloudInfoCommand;
import me.clip.placeholderapi.commands.command.ecloud.ListCommand; import me.clip.placeholderapi.commands.command.ecloud.EcloudListCommand;
import me.clip.placeholderapi.commands.command.ecloud.*; import me.clip.placeholderapi.commands.command.ecloud.*;
import me.clip.placeholderapi.util.Msg; import me.clip.placeholderapi.util.Msg;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
@ -20,14 +20,14 @@ public final class CommandHandler implements CommandExecutor {
private static final Command DEFAULT = new VersionCommand(); private static final Command DEFAULT = new VersionCommand();
private static final List<Command> COMMANDS = Lists.newArrayList( private static final List<Command> COMMANDS = Lists.newArrayList(
new ClearCommand(), new EcloudClearCommand(),
new DownloadCommand(), new EcloudDownloadCommand(),
new InfoCommand(), new EcloudInfoCommand(),
new ListCommand(), new EcloudListCommand(),
new PlaceholdersCommand(), new EcloudPlaceholdersCommand(),
new RefreshCommand(), new EcloudRefreshCommand(),
new StatusCommand(), new EcloudStatusCommand(),
new VersionInfoCommand(), new EcloudVersionInfoCommand(),
new EcloudCommand(), new EcloudCommand(),
new BcParseCommand(), new BcParseCommand(),
new ParseCommand(), new ParseCommand(),
@ -35,8 +35,8 @@ public final class CommandHandler implements CommandExecutor {
new DisableEcloudCommand(), new DisableEcloudCommand(),
new EnableCloudCommand(), new EnableCloudCommand(),
new HelpCommand(), new HelpCommand(),
new me.clip.placeholderapi.commands.command.InfoCommand(), new InfoCommand(),
new me.clip.placeholderapi.commands.command.ListCommand(), new ListCommand(),
new RegisterCommand(), new RegisterCommand(),
new ReloadCommand(), new ReloadCommand(),
DEFAULT, DEFAULT,

@ -6,8 +6,8 @@ import me.clip.placeholderapi.util.Msg;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
public final class ClearCommand extends Command { public final class EcloudClearCommand extends Command {
public ClearCommand() { public EcloudClearCommand() {
super("ecloud clear", permissions("placeholderapi.ecloud")); super("ecloud clear", permissions("placeholderapi.ecloud"));
} }

@ -11,8 +11,8 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
public final class DownloadCommand extends Command { public final class EcloudDownloadCommand extends Command {
public DownloadCommand() { public EcloudDownloadCommand() {
super("ecloud download", options("&cAn expansion name must be specified!", 1, "placeholderapi.ecloud")); super("ecloud download", options("&cAn expansion name must be specified!", 1, "placeholderapi.ecloud"));
} }

@ -11,8 +11,8 @@ import org.jetbrains.annotations.NotNull;
import static me.clip.placeholderapi.util.Msg.color; import static me.clip.placeholderapi.util.Msg.color;
public final class InfoCommand extends Command { public final class EcloudInfoCommand extends Command {
public InfoCommand() { public EcloudInfoCommand() {
super("ecloud info", options("&cAn expansion name must be specified!", 1, "placeholderapi.ecloud")); super("ecloud info", options("&cAn expansion name must be specified!", 1, "placeholderapi.ecloud"));
} }

@ -16,7 +16,7 @@ import java.util.stream.Collectors;
import static me.clip.placeholderapi.util.Msg.color; import static me.clip.placeholderapi.util.Msg.color;
public final class ListCommand extends Command { public final class EcloudListCommand extends Command {
private static final int MINIMUM_ARGUMENTS = 1; private static final int MINIMUM_ARGUMENTS = 1;
private static final Set<String> COMPLETIONS = Sets.newHashSet( private static final Set<String> COMPLETIONS = Sets.newHashSet(
"all", "all",
@ -24,7 +24,7 @@ public final class ListCommand extends Command {
"installed" "installed"
); );
public ListCommand() { public EcloudListCommand() {
super("ecloud list", options("&cIncorrect usage! &7/papi ecloud list <all/author/installed> (page)", super("ecloud list", options("&cIncorrect usage! &7/papi ecloud list <all/author/installed> (page)",
MINIMUM_ARGUMENTS, "placeholderapi.ecloud")); MINIMUM_ARGUMENTS, "placeholderapi.ecloud"));
} }

@ -12,8 +12,8 @@ import org.jetbrains.annotations.NotNull;
import java.util.List; import java.util.List;
public final class PlaceholdersCommand extends Command { public final class EcloudPlaceholdersCommand extends Command {
public PlaceholdersCommand() { public EcloudPlaceholdersCommand() {
super("ecloud placeholders", options("&cAn expansion name must be specified!", 1, "placeholderapi.ecloud")); super("ecloud placeholders", options("&cAn expansion name must be specified!", 1, "placeholderapi.ecloud"));
} }

@ -7,8 +7,8 @@ import me.clip.placeholderapi.util.Msg;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
public final class RefreshCommand extends Command { public final class EcloudRefreshCommand extends Command {
public RefreshCommand() { public EcloudRefreshCommand() {
super("ecloud refresh", permissions("placeholderapi.ecloud")); super("ecloud refresh", permissions("placeholderapi.ecloud"));
} }

@ -6,8 +6,8 @@ import me.clip.placeholderapi.util.Msg;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
public final class StatusCommand extends Command { public final class EcloudStatusCommand extends Command {
public StatusCommand() { public EcloudStatusCommand() {
super("ecloud status", permissions("placeholderapi.ecloud")); super("ecloud status", permissions("placeholderapi.ecloud"));
} }

@ -9,8 +9,8 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
public final class VersionInfoCommand extends Command { public final class EcloudVersionInfoCommand extends Command {
public VersionInfoCommand() { public EcloudVersionInfoCommand() {
super("ecloud versioninfo", options("&cIncorrect usage! &7/papi ecloud versioninfo <name> <version>", super("ecloud versioninfo", options("&cIncorrect usage! &7/papi ecloud versioninfo <name> <version>",
2, "placeholderapi.ecloud")); 2, "placeholderapi.ecloud"));
} }