MrKinau / FishingBot

1.8 - 1.21 Fishing bot for Minecraft
GNU General Public License v3.0
322 stars 68 forks source link

Bot Disconnects #63

Closed Sebayop closed 4 years ago

Sebayop commented 4 years ago

I was trying to connect the bot to a server, in the lobby it logs in and everything is fine, but when it connects to survival it starts to fish and disconnects automatically here is my log and settings, it is a paper server with bungeecord

Solar-PuTTY_TDYlhcZKn1 Solar-PuTTY_h1v6kXDJ0F

MrKinau commented 4 years ago

Thanks for your issue. As described in the disconnect Message. You are may sending an empty message. Seems Like there is a line break after the start-text following an empty line?

Sebayop commented 4 years ago

image There are no empty spaces after the text

MrKinau commented 4 years ago

Sorry I can not explain why you get kicked, maybe you can upload a CENSORED copy of your full config file? Maybe there are strange characters in? Haven't got this issue before :/

Sebayop commented 4 years ago

config.txt

MrKinau commented 4 years ago

Thanks for your patience. Oh well that took a while to find the issue. Now I am sure I got it.

The problem is that the bot tries to send the empty message you set in announce-lvl-up. As the message is empty you get kicked by spigot, because it is not allowed to send empty messages. This lvl-up message will also be sent on join, so the bot just get kicked on every connection attempt.

To fix this: You can type "false" in announce-lvl-up (without the ""). I forgot to mention it in the header of the config, I'll fix this.

I'm pretty sure thats it, but if not be welcome to answer again and I will take a much closer look at it.

Last, but not least: You do not need the /trigger Bot. It's just an example command to show that start-text also works with commands.

Sebayop commented 4 years ago

oh I hadn't noticed that, now it works thank you very much

MrKinau commented 4 years ago

np :)