Revert changes
This commit is contained in:
parent
628d5adcb5
commit
11a4cff10a
@ -1,4 +0,0 @@
|
||||
package fr.xephi.authme.listener;
|
||||
|
||||
public class MapCaptchaHandler {
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user