Jump to content

How to verify extra data when connecting to server


Epix

Recommended Posts

I wanna write a mod to verify extra data on connecting server (before player joining world to prevent potential damage).

I've written mods before but my knowledge about network is only limited to SimpleNetworkWrapper.

Maybe I should use ClientConnectedToServerEvent? But I can't find many useful examples or documents about it. Any help is appreciated!

 

Link to comment
Share on other sites

I wanna write a mod to verify extra data on connecting server (before player joining world to prevent potential damage).

I've written mods before but my knowledge about network is only limited to SimpleNetworkWrapper.

Maybe I should use ClientConnectedToServerEvent? But I can't find many useful examples or documents about it. Any help is appreciated!

I think you need to be more specific on the data you want to check.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

I wanna write a mod to verify extra data on connecting server (before player joining world to prevent potential damage).

I've written mods before but my knowledge about network is only limited to SimpleNetworkWrapper.

Maybe I should use ClientConnectedToServerEvent? But I can't find many useful examples or documents about it. Any help is appreciated!

I think you need to be more specific on the data you want to check.

In my situation, it's extra authorization data input by user. I do know online-mode, whitelist, authme plugins, but I still need another password-like thing for a special server. It is asked when minecraft started by popping up a input box, and I want to verify it before player joined server.

Link to comment
Share on other sites

Why? Just use a whitelist...

Probably because password distribution is easier than accessing the file and adding the information.

 

I wanna write a mod to verify extra data on connecting server (before player joining world to prevent potential damage).

I've written mods before but my knowledge about network is only limited to SimpleNetworkWrapper.

Maybe I should use ClientConnectedToServerEvent? But I can't find many useful examples or documents about it. Any help is appreciated!

I think you need to be more specific on the data you want to check.

In my situation, it's extra authorization data input by user. I do know online-mode, whitelist, authme plugins, but I still need another password-like thing for a special server. It is asked when minecraft started by popping up a input box, and I want to verify it before player joined server.

It would have to be a server and client mod. You will need a custom gui and custom packet.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Why? Just use a whitelist...

Probably because password distribution is easier than accessing the file and adding the information.

 

I wanna write a mod to verify extra data on connecting server (before player joining world to prevent potential damage).

I've written mods before but my knowledge about network is only limited to SimpleNetworkWrapper.

Maybe I should use ClientConnectedToServerEvent? But I can't find many useful examples or documents about it. Any help is appreciated!

I think you need to be more specific on the data you want to check.

In my situation, it's extra authorization data input by user. I do know online-mode, whitelist, authme plugins, but I still need another password-like thing for a special server. It is asked when minecraft started by popping up a input box, and I want to verify it before player joined server.

It would have to be a server and client mod. You will need a custom gui and custom packet.

yeah I've written a gui to allow user type in information. But how to use custom packet? I have used SimpleNetworkWrapper before, but is it possible to use it before player joining world and prevent login if verify fails? Any hint of which class or event I should use is okay...

Link to comment
Share on other sites

why ??

 

if i what to go evil and break stuff your mod is not going to stop me

Well it's something like two-factor authentication. It's a shame but someone's password was leaked before. And I can't change mojang account login mechanism.

When I using authme(or another bukkit plugin that allowed third party auth, can't remember the name) before, there were bugs to allow player do bad things when he have logged in the server but not provided password. Since all plugins have to let player type server command to auth, they have to allow player logged in before auth.

So I want to make a mod to auth BEFORE a player entity can join the server.

Will there still be a change to break things? If so, is it possible to use other methods to prevent that?

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.