From f54537460b8865e19bfbcf92e76c9bfa06fb68ad Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 26 Jul 2016 09:05:08 +1000 Subject: [PATCH] SPIGOT-2552: Aliases for Vanilla commands By: md_5 --- .../craftbukkit/command/VanillaCommandWrapper.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java b/paper-server/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java index 100d84ae3b..0930d30dd7 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java @@ -22,16 +22,9 @@ import org.bukkit.entity.minecart.CommandMinecart; public final class VanillaCommandWrapper extends VanillaCommand { protected final CommandAbstract vanillaCommand; - public VanillaCommandWrapper(CommandAbstract vanillaCommand) { - super(vanillaCommand.getCommand()); - this.vanillaCommand = vanillaCommand; - } - public VanillaCommandWrapper(CommandAbstract vanillaCommand, String usage) { - super(vanillaCommand.getCommand()); + super(vanillaCommand.getCommand(), "A Mojang provided command.", usage, vanillaCommand.b()); // PAIL: rename this.vanillaCommand = vanillaCommand; - this.description = "A Mojang provided command."; - this.usageMessage = usage; this.setPermission("minecraft.command." + vanillaCommand.getCommand()); }