Can My Mod Be Used On Multiplayer

Started by GlacialDesert14 on Sun, 02/05/2017 - 23:16

Topic category: Help with MCreator's application

Last seen on 17:04, 30. Jul 2017
Joined Apr 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Can My Mod Be Used On Multiplayer
Sun, 02/05/2017 - 23:16

I was trying to add my mod to a friends server and it crashed. Is there a way to give your mod multiplayer compatible?

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
Well, yes it is. It crashes
Mon, 02/06/2017 - 00:23

Well, yes it is. It crashes because the code has in self some part that uses Client-side method/field/class. Because the "object" is client-only, it is able to recompile but the server will not be able to find it and that encounters to something like NoSuchMethodException or NoSuchClassException.
Usually the client-only class that it tries to use is Minecraft.class.