public class ItemUseBypass extends Object implements BypassChecker
Modifier and Type | Class and Description |
---|---|
static class |
ItemUseBypass.WhenBypass |
Modifier and Type | Field and Description |
---|---|
static List<ItemUseBypass> |
CLICK_BYPASS |
Constructor and Description |
---|
ItemUseBypass(String itemName,
Configuration config) |
Modifier and Type | Method and Description |
---|---|
List<CheatKeys> |
getCheats() |
Configuration |
getConfig() |
String |
getItem() |
ItemUseBypass.WhenBypass |
getWhen() |
boolean |
hasBypass(Player p,
Cheat c)
Checker if the player has bypass
|
static boolean |
hasBypassWithClick(Player p,
Cheat c,
ItemStack item,
String actionName) |
boolean |
isForThisCheat(Cheat c) |
public static final List<ItemUseBypass> CLICK_BYPASS
public ItemUseBypass(String itemName, Configuration config)
public static boolean hasBypassWithClick(Player p, Cheat c, ItemStack item, String actionName)
public Configuration getConfig()
public boolean isForThisCheat(Cheat c)
public String getItem()
public ItemUseBypass.WhenBypass getWhen()
public boolean hasBypass(Player p, Cheat c)
BypassChecker
hasBypass
in interface BypassChecker
p
- the player which we are looking for bypassc
- the cheat that we are checking