Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 34234ac

Browse files
committed
Add /skills command, fix /loot command
Also adds dashes to /slayer command.
1 parent 6d60add commit 34234ac

File tree

5 files changed

+342
-15
lines changed

5 files changed

+342
-15
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ QOL changes that enhances your Hypixel Skyblock experience. Created to add featu
66
- Coordinate and angle display (toggleable)
77
- Slayer item tracker
88
- Slayer API command
9+
- Skill API command
910

1011
## Commands
1112
- /toggle [gparty/coords/list] - Toggles features. /toggle list returns values of every toggle.
@@ -14,9 +15,11 @@ QOL changes that enhances your Hypixel Skyblock experience. Created to add featu
1415
- /loot [zombie/spider/wolf] - Returns loot received from the slayer quest.
1516
- /display [zombie/spider/wolf/off] - Text display for slayer tracker.
1617
- /move [coords/display] [x] [y] - Moves text display to specified X and Y coordinates.
17-
- /slayer <name> - Uses API to get slayer xp for a person. If no name is provided, it checks yours.
18+
- /slayer <name> - Uses API to get slayer xp of a person. If no name is provided, it checks yours.
19+
- /skills <name> - Uses API to get skill levlels of a person. If no name is provided, it checks yours.
1820

1921
### Notes
2022
- Slayer tracker for token drops and 20% chance drops uses a 12x12x12 bounding box centered on the player to detect the drops. If you are out of the range of the item drop, it will not count on the tracker.
2123
- API commands may take a while depending on your internet connection.
2224
- API commands send one request to Mojang and two requests to the Hypixel API. This means doing more than 60 API commands/minute will get you rate-limited. If you have an unlimited Hypixel API key, this is changed to 600 API commands/10 minutes.
25+
- An incorrect API key will result in an HTTP error code of 402.

me/Danker/TheMod.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import me.Danker.commands.MoveCommand;
1414
import me.Danker.commands.ReloadConfigCommand;
1515
import me.Danker.commands.SetkeyCommand;
16+
import me.Danker.commands.SkillsCommand;
1617
import me.Danker.commands.SlayerCommand;
1718
import me.Danker.commands.ToggleCommand;
1819
import me.Danker.handlers.ConfigHandler;
@@ -41,7 +42,7 @@
4142
public class TheMod
4243
{
4344
public static final String MODID = "Danker's Skyblock Mod";
44-
public static final String VERSION = "1.5.1";
45+
public static final String VERSION = "1.5.2";
4546

4647
static int checkItemsNow = 0;
4748
static int itemsChecked = 0;
@@ -66,6 +67,7 @@ public void preInit(final FMLPreInitializationEvent event) {
6667
ClientCommandHandler.instance.registerCommand(new DisplayCommand());
6768
ClientCommandHandler.instance.registerCommand(new MoveCommand());
6869
ClientCommandHandler.instance.registerCommand(new SlayerCommand());
70+
ClientCommandHandler.instance.registerCommand(new SkillsCommand());
6971
}
7072

7173
// It randomly broke, so I had to make it the highest priority

me/Danker/commands/LootCommand.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void processCommand(ICommandSender arg0, String[] arg1) throws CommandExc
113113
if (wolfBosses == -1) {
114114
bossesBetween = "Never";
115115
} else {
116-
bossesBetween = Integer.toString(wolfBosses);
116+
bossesBetween = NumberFormat.getIntegerInstance().format(wolfBosses);
117117
}
118118

119119
player.addChatMessage(new ChatComponentText(EnumChatFormatting.AQUA + "" + EnumChatFormatting.BOLD + "-------------------\n" +
@@ -128,7 +128,7 @@ public void processCommand(ICommandSender arg0, String[] arg1) throws CommandExc
128128
EnumChatFormatting.AQUA + " Grizzly Baits: " + wolfBaits + "\n" +
129129
EnumChatFormatting.DARK_PURPLE + " Overfluxes: " + wolfFluxes + "\n" +
130130
EnumChatFormatting.AQUA + " Time Since RNG: " + timeBetween + "\n" +
131-
EnumChatFormatting.AQUA + " Bosses Since RNG: " + NumberFormat.getIntegerInstance().format(bossesBetween) + "\n" +
131+
EnumChatFormatting.AQUA + " Bosses Since RNG: " + bossesBetween + "\n" +
132132
EnumChatFormatting.AQUA + "" + EnumChatFormatting.BOLD + " -------------------"));
133133
} else if (arg1[0].equalsIgnoreCase("spider")) {
134134
if (spiderTime == -1) {
@@ -139,7 +139,7 @@ public void processCommand(ICommandSender arg0, String[] arg1) throws CommandExc
139139
if (spiderBosses == -1) {
140140
bossesBetween = "Never";
141141
} else {
142-
bossesBetween = Integer.toString(spiderBosses);
142+
bossesBetween = NumberFormat.getIntegerInstance().format(spiderBosses);
143143
}
144144

145145
player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "" + EnumChatFormatting.BOLD + "-------------------\n" +
@@ -154,7 +154,7 @@ public void processCommand(ICommandSender arg0, String[] arg1) throws CommandExc
154154
EnumChatFormatting.LIGHT_PURPLE + " Fly Swatters: " + spiderSwatters + "\n" +
155155
EnumChatFormatting.GOLD + " Digested Mosquitos: " + spiderMosquitos + "\n" +
156156
EnumChatFormatting.AQUA + " Time Since RNG: " + timeBetween + "\n" +
157-
EnumChatFormatting.AQUA + " Bosses Since RNG: " + NumberFormat.getIntegerInstance().format(bossesBetween) + "\n" +
157+
EnumChatFormatting.AQUA + " Bosses Since RNG: " + bossesBetween + "\n" +
158158
EnumChatFormatting.RED + "" + EnumChatFormatting.BOLD + " -------------------"));
159159
} else if (arg1[0].equalsIgnoreCase("zombie")) {
160160
if (zombieTime == -1) {
@@ -165,7 +165,7 @@ public void processCommand(ICommandSender arg0, String[] arg1) throws CommandExc
165165
if (zombieBosses == -1) {
166166
bossesBetween = "Never";
167167
} else {
168-
bossesBetween = Integer.toString(zombieBosses);
168+
bossesBetween = NumberFormat.getIntegerInstance().format(zombieBosses);
169169
}
170170

171171
player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "" + EnumChatFormatting.BOLD + "-------------------\n" +
@@ -181,7 +181,7 @@ public void processCommand(ICommandSender arg0, String[] arg1) throws CommandExc
181181
EnumChatFormatting.DARK_GREEN + " Snake Runes: " + zombieSnakes + "\n" +
182182
EnumChatFormatting.GOLD + " Scythe Blades: " + zombieScythes + "\n" +
183183
EnumChatFormatting.AQUA + " Time Since RNG: " + timeBetween + "\n" +
184-
EnumChatFormatting.AQUA + " Bosses Since RNG: " + NumberFormat.getIntegerInstance().format(bossesBetween) + "\n" +
184+
EnumChatFormatting.AQUA + " Bosses Since RNG: " + bossesBetween + "\n" +
185185
EnumChatFormatting.GREEN + "" + EnumChatFormatting.BOLD + " -------------------"));
186186
} else {
187187
player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /loot [zombie/spider/wolf]"));

0 commit comments

Comments
 (0)