From 2f0925e3ceb2af3a96de034a3f6e390ca15ba1d9 Mon Sep 17 00:00:00 2001 From: bowser0000 Date: Sat, 20 Nov 2021 22:47:03 -0500 Subject: Add /inv alias to /inventory --- src/main/java/me/Danker/commands/InventoryCommand.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main') diff --git a/src/main/java/me/Danker/commands/InventoryCommand.java b/src/main/java/me/Danker/commands/InventoryCommand.java index 8fb4d5b..d4b35ae 100644 --- a/src/main/java/me/Danker/commands/InventoryCommand.java +++ b/src/main/java/me/Danker/commands/InventoryCommand.java @@ -27,6 +27,7 @@ import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Base64; +import java.util.Collections; import java.util.List; public class InventoryCommand extends CommandBase { @@ -38,6 +39,11 @@ public class InventoryCommand extends CommandBase { return "inventory"; } + @Override + public List getCommandAliases() { + return Collections.singletonList("inv"); + } + @Override public String getCommandUsage(ICommandSender arg0) { return "/" + getCommandName() + " [name]"; -- cgit