diff options
author | md_5 <git@md-5.net> | 2016-07-26 09:05:08 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-07-26 09:05:08 +1000 |
commit | 21e3b055225dade6100342632f059509ca638c2a (patch) | |
tree | f23da2d76aed42ad1859a50876b7190528cf34d7 /src/main/java/org | |
parent | 09f1a196095aa6f221758e0675ccca6e3de72534 (diff) | |
download | craftbukkit-21e3b055225dade6100342632f059509ca638c2a.tar craftbukkit-21e3b055225dade6100342632f059509ca638c2a.tar.gz craftbukkit-21e3b055225dade6100342632f059509ca638c2a.tar.lz craftbukkit-21e3b055225dade6100342632f059509ca638c2a.tar.xz craftbukkit-21e3b055225dade6100342632f059509ca638c2a.zip |
SPIGOT-2552: Aliases for Vanilla commands
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java b/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java index 100d84ae..0930d30d 100644 --- a/src/main/java/org/bukkit/craftbukkit/command/VanillaCommandWrapper.java +++ b/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()); } |