diff options
author | bowser0000 <bowser0000@gmail.com> | 2021-02-15 00:59:57 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2021-02-15 00:59:57 -0500 |
commit | 7260dd02a2d39512b0c83488894579a0a8a0a960 (patch) | |
tree | 15698680f136700a5acd600b23a84c92e08cee83 /src | |
parent | e07ddd78ad98bf72122bc175e3a3aebfeb467605 (diff) | |
download | SkyblockMod-7260dd02a2d39512b0c83488894579a0a8a0a960.tar.gz SkyblockMod-7260dd02a2d39512b0c83488894579a0a8a0a960.tar.bz2 SkyblockMod-7260dd02a2d39512b0c83488894579a0a8a0a960.zip |
Add alias to slayers command (/slayer)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/me/Danker/commands/SlayerCommand.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/commands/SlayerCommand.java b/src/main/java/me/Danker/commands/SlayerCommand.java index 6c83934..e7f78f1 100644 --- a/src/main/java/me/Danker/commands/SlayerCommand.java +++ b/src/main/java/me/Danker/commands/SlayerCommand.java @@ -14,6 +14,7 @@ import net.minecraft.util.ChatComponentText; import net.minecraft.util.EnumChatFormatting; import java.text.NumberFormat; +import java.util.Collections; import java.util.List; import java.util.Locale; @@ -25,6 +26,11 @@ public class SlayerCommand extends CommandBase { } @Override + public List<String> getCommandAliases() { + return Collections.singletonList("slayer"); + } + + @Override public String getCommandUsage(ICommandSender arg0) { return "/" + getCommandName() + " [name]"; } |