Skip to content

Commit 2caef23

Browse files
committed
skip unnecessary ping json parsing
1 parent 4f28f9c commit 2caef23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/zenith/command/impl/ServerCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public LiteralArgumentBuilder<CommandContext> register() {
123123
private void pingServer(CommandContext c, String ip, int port) {
124124
EXECUTOR.execute(() -> {
125125
try {
126-
MCPing.INSTANCE.ping(ip, port, 3000, true);
126+
MCPing.INSTANCE.getProtocolVersion(ip, port, 3000, true);
127127
} catch (Throwable e) {
128128
c.getSource().logEmbed(c, Embed.builder()
129129
.title("Server Ping Failed")

0 commit comments

Comments
 (0)