Revert changes

This commit is contained in:
HaHaWTH 2023-11-04 18:42:55 +08:00
parent 628d5adcb5
commit 11a4cff10a
2 changed files with 0 additions and 27 deletions

View File

@ -1,4 +0,0 @@
package fr.xephi.authme.listener;
public class MapCaptchaHandler {
}

View File

@ -1,23 +0,0 @@
package fr.xephi.authme.util;
import org.bukkit.map.MapView;
import java.lang.reflect.Method;
public class MapUtils {
public static int getMapId(MapView mapView) {
try {
Method method = mapView.getClass().getMethod("getId");
Object mapId = method.invoke(mapView);
if (mapId instanceof Short) {
return ((Short) mapId).intValue();
} else {
return (Integer) mapId;
}
} catch (Exception exception) {
exception.printStackTrace();
}
return 0;
}
}