mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-19 19:41:04 +02:00
Made the blacklist for player pickup expire.
This commit is contained in:
parent
8b0c76cedf
commit
b8ba3a2b10
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "EpicHoppers"
|
name: "EpicHoppers"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "4.0.2"
|
version: "4.0.3"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -111,6 +111,10 @@ public class ModuleSuction implements Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isBlacklisted(UUID uuid) {
|
public static boolean isBlacklisted(UUID uuid) {
|
||||||
|
if (blacklist.contains(uuid))
|
||||||
|
Bukkit.getScheduler().runTaskLater(EpicHoppers.getInstance(),
|
||||||
|
() -> blacklist.remove(uuid), 10L);
|
||||||
|
|
||||||
return blacklist.contains(uuid);
|
return blacklist.contains(uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user