1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-21 07:49:32 +00:00

Add a /geyser ping command (#4131)

* Init: Add /geyser ping command

* Block just console execution, not everything but console senders

* Use RTT as that seems to vary less wildly compared to getPing()

* Cleanup, use lang strings

* Add ping() method to GeyserConnection in api

* Update to cloud changes
This commit is contained in:
chris
2024-07-12 20:42:31 +02:00
committed by GitHub
parent af60a77f7f
commit 51a1295139
4 changed files with 64 additions and 0 deletions

View File

@@ -132,4 +132,9 @@ public interface GeyserConnection extends Connection, CommandSource {
@Deprecated
@NonNull
Set<String> fogEffects();
/**
* Returns the current ping of the connection.
*/
int ping();
}