diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-07-29 01:04:14 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-07-29 01:04:14 -0400 |
commit | 107b017bbfb82098bb65597eed99e12136526fa4 (patch) | |
tree | 9ada2a277986ce60125a397a997344f6b5ae1797 /me/Danker/commands | |
parent | 872799a67524437e39f785ec27ab85d708154e65 (diff) | |
download | SkyblockMod-107b017bbfb82098bb65597eed99e12136526fa4.tar.gz SkyblockMod-107b017bbfb82098bb65597eed99e12136526fa4.tar.bz2 SkyblockMod-107b017bbfb82098bb65597eed99e12136526fa4.zip |
Add update checker, change /pets -> /petsofv1.5.5
The mod checks for an update once per session when you join a world. /pets was conflicting with the Hypixel command /pets.
Diffstat (limited to 'me/Danker/commands')
-rw-r--r-- | me/Danker/commands/DHelpCommand.java | 5 | ||||
-rw-r--r-- | me/Danker/commands/PetsCommand.java | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/me/Danker/commands/DHelpCommand.java b/me/Danker/commands/DHelpCommand.java index 9c064d7..54724a9 100644 --- a/me/Danker/commands/DHelpCommand.java +++ b/me/Danker/commands/DHelpCommand.java @@ -1,5 +1,6 @@ package me.Danker.commands; +import me.Danker.TheMod; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; @@ -28,7 +29,7 @@ public class DHelpCommand extends CommandBase { public void processCommand(ICommandSender arg0, String[] arg1) throws CommandException { EntityPlayer player = (EntityPlayer) arg0; - player.addChatMessage(new ChatComponentText("\n" + EnumChatFormatting.GOLD + " Danker's Skyblock Mod Version 1.5.4\n" + + player.addChatMessage(new ChatComponentText("\n" + EnumChatFormatting.GOLD + " " + TheMod.MODID + " Version " + TheMod.VERSION + "\n" + EnumChatFormatting.AQUA + " <> = Mandatory parameter. [] = Optional parameter.\n" + EnumChatFormatting.GOLD + " /dhelp" + EnumChatFormatting.AQUA + " - Returns this message.\n" + EnumChatFormatting.GOLD + " /toggle <gparty/coords/golden/list>" + EnumChatFormatting.AQUA + " - Toggles features. /toggle list returns values of every toggle.\n" + @@ -40,7 +41,7 @@ public class DHelpCommand extends CommandBase { 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.\n" + - EnumChatFormatting.GOLD + " /pets [player]" + EnumChatFormatting.AQUA + " - Uses API to get pets of a person. If no name is provided, it checks yours.\n" + + EnumChatFormatting.GOLD + " /petsof [player]" + EnumChatFormatting.AQUA + " - Uses API to get pets of a person. If no name is provided, it checks yours.\n" + EnumChatFormatting.GOLD + " /bank [player]" + EnumChatFormatting.AQUA + " - Uses API to get bank and purse coins of a person. If no name is provided, it checks yours.\n" + EnumChatFormatting.GOLD + " /armor [player]" + EnumChatFormatting.AQUA + " - Uses API to get armour of a person. If no name is provided, it checks yours.\n")); } diff --git a/me/Danker/commands/PetsCommand.java b/me/Danker/commands/PetsCommand.java index 1ffdd77..8c53732 100644 --- a/me/Danker/commands/PetsCommand.java +++ b/me/Danker/commands/PetsCommand.java @@ -56,7 +56,7 @@ public class PetsCommand extends CommandBase { @Override public String getCommandName() { - return "pets"; + return "petsof"; } @Override |