Update TpsCommand.java

Fix Compability with 1.20.5/1.20.6
This commit is contained in:
LOLYAY 2024-07-21 11:26:16 +02:00 committed by GitHub
parent 106425066e
commit ad6815636e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class TpsCommand implements WSCommand {
private static final String mcVer = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
private static final String mcVer = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[2];
@Override
public void execute(WSServer wsServer, WebSocket conn, String params) {