Updated essentials support.

This commit is contained in:
Brianna 2019-06-22 17:54:46 -04:00
parent 34c1b06765
commit fdb0773bb2
2 changed files with 7 additions and 2 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "UltimateKits"
path: "/builds/$CI_PROJECT_PATH"
version: "2.3.11"
version: "2.3.12"
build:
stage: build

View File

@ -57,6 +57,11 @@ public class EssentialsHook implements Hook {
}
public long getDelay(String kitName) {
return Integer.toUnsignedLong((int) essentials.getSettings().getKit(kitName).getOrDefault("delay", 0));
Object object = essentials.getSettings().getKit(kitName).getOrDefault("delay", 0);
try {
return Integer.toUnsignedLong((int) object);
} catch (Exception e) {
return (long) object;
}
}
}