Skip to content

Commit

Permalink
Made the changes requested by the maintainer of VeinMiner.
Browse files Browse the repository at this point in the history
  • Loading branch information
OmeWillem committed Oct 11, 2024
1 parent 046a11b commit ef480c1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@
import org.jetbrains.annotations.UnmodifiableView;

import wtf.choco.network.bukkit.BukkitProtocolConfiguration;
import wtf.choco.veinminer.anticheat.*;
import wtf.choco.veinminer.anticheat.AntiCheatHook;
import wtf.choco.veinminer.anticheat.AntiCheatHookAAC;
import wtf.choco.veinminer.anticheat.AntiCheatHookAntiAura;
import wtf.choco.veinminer.anticheat.AntiCheatHookGrim;
import wtf.choco.veinminer.anticheat.AntiCheatHookLightAntiCheat;
import wtf.choco.veinminer.anticheat.AntiCheatHookMatrix;
import wtf.choco.veinminer.anticheat.AntiCheatHookNCP;
import wtf.choco.veinminer.anticheat.AntiCheatHookNegativity;
import wtf.choco.veinminer.anticheat.AntiCheatHookSpartan;
import wtf.choco.veinminer.anticheat.AntiCheatHookThemis;
import wtf.choco.veinminer.anticheat.AntiCheatHookVulcan;
import wtf.choco.veinminer.command.CommandBlocklist;
import wtf.choco.veinminer.command.CommandToollist;
import wtf.choco.veinminer.command.CommandVeinMiner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ public boolean shouldUnexempt(@NotNull Player player) {
}

@EventHandler(ignoreCancelled = true)
public void vulcanFlag(final VulcanFlagEvent event) {
if (!exempt.contains(event.getPlayer().getUniqueId()))
public void onFlag(VulcanFlagEvent event) {
if (!exempt.contains(event.getPlayer().getUniqueId())) {
return;
}

event.setCancelled(true);
}
Expand Down

0 comments on commit ef480c1

Please sign in to comment.