Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

How might one properly register a server command without throwing an AbstractMethodError? I've currently got one command registered, which works just fine within eclipse, however, when I export the mod, the mod loads just fine but when the command is entered it throws an AbstractMethodError and barfs up a bunch of locations it's throwing the exception.

 

Here's how I'm registering the command:

 

@EventHandler

@SideOnly(Side.SERVER)

public void serverLoad(FMLServerStartingEvent event) {

    event.registerServerCommand(new ZeusCommand());

}

 

Here's the error it's throwing:

 

https://gist.github.com/anonymous/b648cf189e6453848aab

 

Here's the full log:

 

https://gist.github.com/anonymous/59fcf536246d499662d7

 

I've looked at one other mod, Morpheus (by Quetzi), which uses the same method of registering the command, and I'm using it the same way. Any tips?

The further a society drifts from the truth, the more it hates those who speak it.

Are you properly reobfuscating your mod? From this:

 

java.lang.AbstractMethodError

at net.minecraft.command.CommandHandler.func_71560_a(CommandHandler.java:119)

 

I'm guessing that either your mod wasn't reobfuscated, or you're not implementing all of the required ICommand methods. Since your code compiles in eclipse, it's more likely that your mod wasn't property reobfuscated. I've used this code myself to successfully register server commands. In my mod, my commands extend CommandBase, because it implements a few useful methods for you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.