mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
SPIGOT-2552: Aliases for Vanilla commands
This commit is contained in:
parent
09f1a19609
commit
21e3b05522
@ -22,16 +22,9 @@ import org.bukkit.entity.minecart.CommandMinecart;
|
|||||||
public final class VanillaCommandWrapper extends VanillaCommand {
|
public final class VanillaCommandWrapper extends VanillaCommand {
|
||||||
protected final CommandAbstract vanillaCommand;
|
protected final CommandAbstract vanillaCommand;
|
||||||
|
|
||||||
public VanillaCommandWrapper(CommandAbstract vanillaCommand) {
|
|
||||||
super(vanillaCommand.getCommand());
|
|
||||||
this.vanillaCommand = vanillaCommand;
|
|
||||||
}
|
|
||||||
|
|
||||||
public VanillaCommandWrapper(CommandAbstract vanillaCommand, String usage) {
|
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.vanillaCommand = vanillaCommand;
|
||||||
this.description = "A Mojang provided command.";
|
|
||||||
this.usageMessage = usage;
|
|
||||||
this.setPermission("minecraft.command." + vanillaCommand.getCommand());
|
this.setPermission("minecraft.command." + vanillaCommand.getCommand());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user