public class BanUtils extends Object
Constructor and Description |
---|
BanUtils() |
Modifier and Type | Method and Description |
---|---|
static BanResult |
banIfNeeded(NegativityPlayer player,
Cheat cheat,
int reliability)
Basically common code for
SpigotNegativity#alertMod and SpongeNegativity#alertMod . |
static int |
computeBanDuration(NegativityPlayer player,
int reliability,
Cheat cheat) |
static void |
kickForBan(NegativityPlayer player,
Ban ban) |
static BanResult |
shouldBan(Cheat cheat,
NegativityPlayer np,
int relia) |
public static int computeBanDuration(NegativityPlayer player, int reliability, Cheat cheat)
public static BanResult shouldBan(Cheat cheat, NegativityPlayer np, int relia)
public static BanResult banIfNeeded(NegativityPlayer player, Cheat cheat, int reliability)
SpigotNegativity#alertMod
and SpongeNegativity#alertMod
.BanManager.executeBan(com.elikill58.negativity.universal.ban.Ban)
, null if banning was not neededpublic static void kickForBan(NegativityPlayer player, Ban ban)