Update TpsCommand.java
Fix Compability with 1.20.5/1.20.6
This commit is contained in:
parent
106425066e
commit
ad6815636e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user