Jump to content

How do I only allow 1 protocol version on MCGalaxy

Posted

As in if I only want 20-23a to connect how do I do that?

Featured Replies

you don't, in other words tell your server list that  the server is for that protocol version.

Owner and founder of Good old Lava Survival, MCGalaxy plugin developer, Master of evil hacks not supported by UnknownShadow.

12 hours ago, Goodly said:

Unless 20-23a implements unique network behavior compared to other versions, this is impossible

????? MCGalaxy since 1.9.3.5 supports protocol versions 3-7

Owner and founder of Good old Lava Survival, MCGalaxy plugin developer, Master of evil hacks not supported by UnknownShadow.

13 hours ago, icanttellyou said:

????? MCGalaxy since 1.9.3.5 supports protocol versions 3-7

You're right, I forgot that the client actually sends different protocol versions. I was thinking about how classic versions didn't send an AppName, but that's not needed to tell the difference in this case.

So basically it is possible, with a simple plugin. You can copy the KickNoCC plugin and modify it so that instead of checking p.appName, it can check if (p.ProtocolVersion != Server.VERSION_0020) then p.Leave and set p.cancellogin to true

  • Author
5 hours ago, Goodly said:

You're right, I forgot that the client actually sends different protocol versions. I was thinking about how classic versions didn't send an AppName, but that's not needed to tell the difference in this case.

So basically it is possible, with a simple plugin. You can copy the KickNoCC plugin and modify it so that instead of checking p.appName, it can check if (p.ProtocolVersion != VERSION_0020) then p.Leave and set p.cancellogin to true

so what is each protocol number then?

7 hours ago, Hedwig7s said:

so what is each protocol number then?

Check here for a description of all of them. Also, I forgot that you have to include Server. before the VERSION_0020 in my hypothetical plugin. like

if (p.ProtocolVersion != Server.VERSION_0020)

 

  • Author
22 hours ago, Goodly said:

Check here for a description of all of them. Also, I forgot that you have to include Server. before the VERSION_0020 in my hypothetical plugin. like


if (p.ProtocolVersion != Server.VERSION_0020)

 

Thanks might update my servers like Generic since it seems less resource intensive

Archived

This topic is now archived and is closed to further replies.