Made the blacklist for player pickup expire.

This commit is contained in:
Brianna 2019-06-30 12:02:33 -04:00
parent 8b0c76cedf
commit b8ba3a2b10
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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);
} }