diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-07-20 19:27:24 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-07-20 19:27:24 -0400 |
commit | 2f128b7995cded35f9b0ca41f5ef6fa70d633b7f (patch) | |
tree | 0b3787ce7df788c64f25125422c80c3fc1e159ec /me/Danker/commands/DHelpCommand.java | |
parent | 34234ac4f58c66c3910e635aaaad60ebf08e9b00 (diff) | |
download | SkyblockMod-2f128b7995cded35f9b0ca41f5ef6fa70d633b7f.tar.gz SkyblockMod-2f128b7995cded35f9b0ca41f5ef6fa70d633b7f.tar.bz2 SkyblockMod-2f128b7995cded35f9b0ca41f5ef6fa70d633b7f.zip |
/dhelp, /guildof, fix brackets
Add /dhelp which returns list of commands. Add /guildof which returns guild and guildmaster of a person. Swap <> and [] for parameters.
Diffstat (limited to 'me/Danker/commands/DHelpCommand.java')
-rw-r--r-- | me/Danker/commands/DHelpCommand.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/me/Danker/commands/DHelpCommand.java b/me/Danker/commands/DHelpCommand.java new file mode 100644 index 0000000..5e71f81 --- /dev/null +++ b/me/Danker/commands/DHelpCommand.java @@ -0,0 +1,45 @@ +package me.Danker.commands; + +import net.minecraft.command.CommandBase; +import net.minecraft.command.CommandException; +import net.minecraft.command.ICommandSender; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.util.ChatComponentText; +import net.minecraft.util.EnumChatFormatting; + +public class DHelpCommand extends CommandBase { + + @Override + public String getCommandName() { + return "dhelp"; + } + + @Override + public String getCommandUsage(ICommandSender arg0) { + return getCommandName(); + } + + @Override + public int getRequiredPermissionLevel() { + return 0; + } + + @Override + public void processCommand(ICommandSender arg0, String[] arg1) throws CommandException { + EntityPlayer player = (EntityPlayer) arg0; + + player.addChatMessage(new ChatComponentText(EnumChatFormatting.GOLD + "Danker's Skyblock Mod Version 1.5.3\n" + + EnumChatFormatting.AQUA + "<> = Mandatory parameter. [] = Optional parameter.\n" + + EnumChatFormatting.GOLD + "/dhelp" + EnumChatFormatting.AQUA + " - Returns this message.\n" + + EnumChatFormatting.GOLD + "/toggle <gparty/coords/list>" + EnumChatFormatting.AQUA + " - Toggles features. /toggle list returns values of every toggle.\n" + + EnumChatFormatting.GOLD + "/setkey <key>" + EnumChatFormatting.AQUA + " - Sets API key.\n" + + EnumChatFormatting.GOLD + "/getkey" + EnumChatFormatting.AQUA + " - Returns key set with /setkey.\n" + + EnumChatFormatting.GOLD + "/loot <zombie/spider/wolf>" + EnumChatFormatting.AQUA + " - Returns loot received from slayer quests.\n" + + EnumChatFormatting.GOLD + "/display <zombie/spider/wolf/off>" + EnumChatFormatting.AQUA + " - Text display for slayer tracker.\n" + + EnumChatFormatting.GOLD + "/move <coords/display> <x> <y>" + EnumChatFormatting.AQUA + " - Moves text display to specified X and Y coordinates.\n" + + EnumChatFormatting.GOLD + "/slayer [player]" + EnumChatFormatting.AQUA + " - Uses API to get slayer xp of a person. If no name is provided, it checks yours.\n" + + EnumChatFormatting.GOLD + "/skills [player]" + EnumChatFormatting.AQUA + " - Uses API to get skill levels of a person. If no name is provided, it checks yours.\n" + + EnumChatFormatting.GOLD + "/guildof [player]" + EnumChatFormatting.AQUA + " - Uses API to get guild name and guild master of a person. If no name is provided, it checks yours.")); + } + +} |