Jump to content

Could not serialize


albsein9

Recommended Posts

I am making a mod that has a command that requires me to create a new ArgumentType called FormationArgument. Everything works fine on a singleplayer world, but on a modded forge server something changes. Whenever a player logs in, it says 

[Server] Netty Epoll Server IO #1/ERROR Could not serialize com.albsein9.customstuff.commands.arguments.FormationArgument@326eceb4 (class com.albsein9.customstuff.commands.arguments.FormationArgument) - will not be sent to client!

 

Now I usually discard these warnings but I noticed that typing the argument for my custom command was showing that it was incorrect even though it was correct, as it works when pressing enter.

It looks like this when still in the ChatGUI

1289058589_ScreenShot2021-05-24at12_18_35PM.thumb.png.c2bdc69cf5254acb0e7833720bb29c5c.png

 

1869725671_ScreenShot2021-05-24at12_18_43PM.png.44e77c1dbe451d8574837cbf22738763.png

 

Note that the command does not have this behaviour on a singleplayer world. On a singleplayer world, when you finish typing the world 'circle', it becomes green.

 

So I was wondering if these 2 things are correlated, and if there is a way to fix this for my server.

Also, here is my code

https://paste.ee/p/UOKZH 

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.