MrGraversen / minecraft-rcon

A Minecraft RCON client in Java. Makes available an evolving command library, brings Minecraft concepts as Java OOP, RCON connection recovery, and much more.
MIT License
50 stars 12 forks source link

Rcon spams ping command #24

Open x3xgit opened 1 month ago

x3xgit commented 1 month ago

Screenshot_1

MrGraversen commented 3 weeks ago

Hello @x3xgit! As part of the connection quality monitoring, the ping command is issued to determine if the RCON/TCP connection is healthy. By default, this occurs once per second by default and not several times a second as your screenshot suggests).

It is possible to tweak this interval when setting up the ConnectOptions class. Would you mind sharing some sample code to see if the the setup does anything to change this?

Either way, the ping command is harmless and does not incur significant load. In fact, it doesn't even exist in the default Minecraft RCON protocol, and is literally only used to monitor the health of the RCON connection. 😸

x3xgit commented 3 weeks ago

Hello @x3xgit! As part of the connection quality monitoring, the ping command is issued to determine if the RCON/TCP connection is healthy. By default, this occurs once per second by default and not several times a second as your screenshot suggests).

It is possible to tweak this interval when setting up the ConnectOptions class. Would you mind sharing some sample code to see if the the setup does anything to change this?

Either way, the ping command is harmless and does not incur significant load. In fact, it doesn't even exist in the default Minecraft RCON protocol, and is literally only used to monitor the health of the RCON connection. 😸

Yeah thank you, I checked your code before creating this issue and found out this problem but could not except your rcon doing that, so the problem was is Essentials plugin was getting ping command and this plugin was responding back so I deleted command in plugin.yml and it worked nice. Thank you.