Fixed NoClassDefError

This commit is contained in:
Rsl1122 2017-09-28 19:45:13 +03:00
parent 94ed7e09a6
commit 37d67cb78d

View File

@ -32,6 +32,7 @@ public class PingWebAPI extends WebAPI {
@Override
public void sendRequest(String address) throws WebAPIException {
if (Compatibility.isBukkitAvailable()) {
String accessKey = BukkitPluginChannelListener.getAccessKey();
if (accessKey != null) {
addVariable("accessKey", accessKey);
@ -42,5 +43,8 @@ public class PingWebAPI extends WebAPI {
if (accessKey != null) {
BukkitPluginChannelListener.usedAccessKey();
}
} else {
super.sendRequest(address);
}
}
}