Jump to content

[1.10.2][SOLVED!] Command problem


MCrafterzz

Recommended Posts

CommonProxy:

 

public void init(FMLInitializationEvent event) {

ClientCommandHandler.instance.registerCommand(new CommandMCrafterzzMod());

ClientCommandHandler.instance.registerCommand(new CommandMM());

ClientCommandHandler.instance.registerCommand(new CommandSetBlocks());

}

 

How is this changing anything?

 

Why did you register your command to the ClientCommandHandler? This will never work, blocks must be set on the server.

 

This ^ is your solution. Use CommandHandler to make your cmd server-sided.

Call it from @EventHandler FMLServerStartingEvent.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Added this to the client Proxy:

public void serverStart(FMLServerStartingEvent event) {

event.registerServerCommand(new CommandMCrafterzzMod());

event.registerServerCommand(new CommandMM());

event.registerServerCommand(new CommandSetBlocks());

}

 

but it doesn't work, not in the common proxy either

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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