mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 19:51:36 +01:00
Updated essentials support.
This commit is contained in:
parent
34c1b06765
commit
fdb0773bb2
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "UltimateKits"
|
name: "UltimateKits"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "2.3.11"
|
version: "2.3.12"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -57,6 +57,11 @@ public class EssentialsHook implements Hook {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public long getDelay(String kitName) {
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user