Jump to content

1.7.10 Detect if player has mod server-side


Blackout

Recommended Posts

I know this is not reliable.

 

Its for my mod Forge Creeper Heal.

I've done a profiler, see there :

 

Actually I send a packet to player with profiling data, so if client doesn't have mod he can't see profiling data. So I want to send him a chat message if he doesn't have mod clientside installed.

So this is just for ergonomic purpose, not security ;)

Link to comment
Share on other sites

Hum I can't get Player instance using this way, but I didn't know this annotation. Very interessant functionnality, I could surely be usefull to me on other devs.

I finally find an other solution. Client send a paquet with his mod version when he connect to the server. If server receive this paquet, it fix modVersion with extended properties else it's mean client doesn't have the mod installed.

 

Thanks

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.