Bstn1802 / AutoReconnect

Minecraft fabric mod which automatically reconnects the client to the last known server after disconnection
https://www.curseforge.com/minecraft/mc-mods/autoreconnect
GNU Lesser General Public License v3.0
28 stars 36 forks source link

[Feature Request] Avoid reconnecting conditions #36

Open joex92 opened 2 years ago

joex92 commented 2 years ago

a way to add conditions to avoid reconnecting. For example, let's say that you are afk-ing on a farm, but suddenly the farm started to lag the server (without you knowing or because you haven't been afk before that long), so some staff kicks you out, but then you would reconnect again, therefore the staff decides to ban you so you won't reconnect. In this case you could add a Conditions feature to select what types of disconnecting message you got will trigger to autorecconect to the server... The easier way I can think of to do it would be to add a text input to add some text that the disconnected message should match, like: if ( text contains input ) then { trigger }. The more elaborate would be adding a selection of the most common disconnected options (looking up all the possible error messages or scenarios) and select from it, I believe this is more elaborate because you would need to add some options and, if a new message is added to the game, update the options to choose from. in the end this would either trigger as a blacklist or whitelist.

Bstn1802 commented 2 years ago

Sounds useful. Already thought about checking the disconnect messages when I made the mod, but decided this would be too much effort. A way to prevent being banned for smth like that would be great tho. I might look into that more and try to find a good solution for that.

joex92 commented 2 years ago

Sounds useful. Already thought about checking the disconnect messages when I made the mod, but decided this would be too much effort. A way to prevent being banned for smth like that would be great tho. I might look into that more and try to find a good solution for that.

nice, thanks for considering... this topic came on a SMP I'm playing, a player was interested on using this mod (because I'm using it, I use the automessaage "beepboopbeepboop" so they know it's not me connecting), but then got turned down by the admin saying that autoreconnecting might at some point get you banned if something happens because you are afk, because the only way to avoid the user to reconnect is banning them (although in our SMP it's not that likely to happen, there's no problem on using it, but still said it for any other server)... so I looked for this mod's github and here I am... šŸ™ƒ

Mshangao commented 2 years ago

Owner of my server told me that bigger issue for him is that I'm using macro to connect with server when I'm disconnected. Logs weight is bigger and also there's a lot of spam in console because of it.

I would love to be able to use AutoMessages feature which is not working :(

Can you make simply version of it with notify that servers may ban for it and then work longer time to make safer version, please? šŸ˜Š

P.S. I'm using AutoReconnect on 1.19.2 version of the game

BlorglyShnorf commented 1 year ago

I would just like to re-surface this issue. A multiplayer server I am on has implemented a rule because of recent server struggles. I would like this feature so I can use it for the regular restarts which happen 4 times a day, and the mod team could still kick me if the resources were needed for other users. Please look into it for me šŸ‘Æ

Bstn1802 commented 1 year ago

I actually already started working on it after the recent update to 1.20 alongside with some other changes and fixes. Been working on it from time to time (for once without the pressure of a new minecraft version requiring an update) I'll have to see, when I'll get around to make a full release with it, but you'll definitely see this feature coming, I really like it and feel like it's important for the safety of users