Skip to content
Branch: master
Clone or download

README.md

AntiCheat

Permissions

public boolean bypassCheck(Check check) {
	if (!player.isOnline())
		return false;
	Player online = (Player) player;
	if (online.hasPermission("nope.bypass." + check.getType()))
		return true;
	if (online.hasPermission("nope.bypass." + check.getCategory()))
		return true;
	if (online.hasPermission("nope.bypass." + check.getType() + "." + check.getCategory()))
		return true;
	return online.hasPermission("nope.bypass." + check.getType() + "." + check.getDebugName());
}
You can’t perform that action at this time.