forked from RepoMirrors/kami-blue
add utils category
This commit is contained in:
parent
c44e1c009b
commit
dc58819cd2
|
@ -25,7 +25,7 @@ public class GenerateWebsiteCommand extends Command {
|
|||
@Override
|
||||
public void call(String[] args) {
|
||||
List<Module> mods = new ArrayList<>(ModuleManager.getModules());
|
||||
String[] modCategories = new String[]{"Chat", "Combat", "Gui", "Misc", "Movement", "Player", "Render"};
|
||||
String[] modCategories = new String[]{"Chat", "Combat", "Gui", "Misc", "Movement", "Player", "Render", "Utils"};
|
||||
List<String> modCategoriesList = new ArrayList<>(java.util.Arrays.asList(modCategories));
|
||||
|
||||
List<String> modsChat = new ArrayList<>();
|
||||
|
@ -35,6 +35,7 @@ public class GenerateWebsiteCommand extends Command {
|
|||
List<String> modsMovement = new ArrayList<>();
|
||||
List<String> modsPlayer = new ArrayList<>();
|
||||
List<String> modsRender = new ArrayList<>();
|
||||
List<String> modsUtils = new ArrayList<>();
|
||||
|
||||
mods.forEach(module -> {
|
||||
switch (module.getCategory()) {
|
||||
|
@ -52,6 +53,8 @@ public class GenerateWebsiteCommand extends Command {
|
|||
modsPlayer.add(nameAndDescription(module));
|
||||
case RENDER:
|
||||
modsRender.add(nameAndDescription(module));
|
||||
case UTILS:
|
||||
modsUtils.add(nameAndDescription(module));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -64,7 +67,7 @@ public class GenerateWebsiteCommand extends Command {
|
|||
KamiMod.log.info(" <li>" + module.getName() + "<p><i>" + module.getDescription() + "</i></p></li>");
|
||||
}
|
||||
});
|
||||
KamiMod.log.info(" </ul></p>"); // cat#$*UWUnuzzl3s70U
|
||||
KamiMod.log.info(" </ul></p>");
|
||||
KamiMod.log.info("</details>");
|
||||
|
||||
});
|
||||
|
|
|
@ -84,6 +84,10 @@ public class Module {
|
|||
return originalName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see me.zeroeightsix.kami.command.commands.GenerateWebsiteCommand
|
||||
* @see me.zeroeightsix.kami.module.modules.gui.ActiveModules
|
||||
*/
|
||||
public enum Category {
|
||||
CHAT("Chat", false),
|
||||
COMBAT("Combat", false),
|
||||
|
@ -93,7 +97,8 @@ public class Module {
|
|||
MISC("Misc", false),
|
||||
MOVEMENT("Movement", false),
|
||||
PLAYER("Player", false),
|
||||
RENDER("Render", false);
|
||||
RENDER("Render", false),
|
||||
UTILS("Utils", false);
|
||||
|
||||
boolean hidden;
|
||||
String name;
|
||||
|
|
|
@ -35,6 +35,7 @@ public class ActiveModules extends Module {
|
|||
case PLAYER: return rgbToInt(66, 245, 126);
|
||||
case MOVEMENT: return rgbToInt(66, 182, 245);
|
||||
case MISC: return rgbToInt(170, 66, 245);
|
||||
case UTILS: return rgbToInt(245, 66, 236);
|
||||
default: return rgbToInt(139, 100, 255);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue