Jump to content

Redempt

Members
  • Posts

    13
  • Joined

  • Last visited

Redempt's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. It works now, thanks! It's now saying that I don't have permission to use the command, but I'm assuming I just need to override the checkPermission method. I'll post here again if that doesn't work.
  2. Title says it all. I'm trying to make an alias mod, and it uses client commands. In my testing environment (gradle runClient) the mod works fine, but in my actual client (version 1.12.2 - 14.23.2.2611) it throws a NoSuchMethodError, saying ClientCommandHandler#registerCommand doesn't exist. I'd tried to make this mod a while back and encountered the exact same error, and I have absolutely no idea why it's happening. Crash report: https://hastebin.com/xogevejupe.rb The only other mod I had installed at the time of that crashed was BestSprinting, a togglesprint mod I made.
  3. Been digging around a bit, and I still can't find any other instances of this happening or figure out why it's happening.
  4. I don't know how else to describe this issue... I attempt to register a client command, I can see it in the command tab completion list, but when trying to run it, it says "Unknown command, say 'help' for help." It doesn't only do this for my commands, it does it for ALL commands as far as I can tell (I use autotip, and its commands also break. This also happens when my mod is the only mod.) CustomCommand: https://hastebin.com/sunenuwusi.java Command: https://hastebin.com/iyayaxutix.java ClientAlias main (registers command): https://hastebin.com/ojezusoqub.java Forge version: 1.11.2-13.20.1.2530
  5. Yeah, it was Optifine messing with ClientChatEvent...
  6. Does Optifine change the way ClientChatEvent works?
  7. I did switch to the ClientCommandManager. I only recently started using Forge. Here's the full crash report: https://hastebin.com/todosozahi.pas
  8. Strangely enough, it seems to only be ClientChatEvent that doesn't exist
  9. Main class: https://hastebin.com/ayuhojaqiy.java Main class for CmdMgr: https://hastebin.com/jirakuxube.css CommandHook: https://hastebin.com/neloyiroki.css Command: https://hastebin.com/xanefexoxe.java
  10. The error happens on startup. It's intended to be a client mod, so it doesn't even load on servers.
  11. I started writing mods recently, and I can't figure out why I'm getting a NoClassDefFoundError when attempting to access ClientChatEvent. Here's my mcmod.info: { "modListVersion": 1, "modList": [{ "modid": "clientalias", "name": "ClientAlias", "description": "Allows you to create aliases for commands and chat", "version": "1.0", "mcversion": "1.11.2", "updateUrl": "", "authorList": ["Redempt"], "credits": "Created by Redempt", "requiredMods": ["forge", "cmdmgr"], "dependencies": ["cmdmgr", "forge"], "useDependencyInformation": true }] } And for CmdMgr, my other mod which it depends on: { "modListVersion": 1, "modList": [{ "modid": "cmdmgr", "name": "CmdMgr", "description": "A library which makes commands easier to use", "version": "1.0", "mcversion": "1.11.2", "updateUrl": "", "authorList": ["Redempt"], "credits": "Created by Redempt", "requiredMods": ["forge"], "dependencies": ["forge"], "useDependencyInformation": true }] } Here's the error: net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from ClientAlias (clientalias) Caused by: java.lang.NoClassDefFoundError: net/minecraftforge/client/event/ClientChatEvent at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetPublicMethods(Class.java:2902) at java.lang.Class.getMethods(Class.java:1615) at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:83) at redempt.cmdmgr.Command.register(Command.java:63) at redempt.cmdmgr.Command.register(Command.java:49) at redempt.clientalias.Main.postInit(Main.java:37)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.