/** * Temporarily ban an IP You must handle kicking any players with the ip if they are online. * * @param ip - IP address to ban * @param bannedBy - Who the ban is by, can be anything * @param reason - Why they are banned * @param expires - Unix Timestamp stating the time of when the ban ends */ public static void tempIPBan(String ip, String bannedBy, String reason, long expires) { plugin.addIPBan(ip, bannedBy, reason, expires); }
/** * Permanently ban an IP You must handle kicking any players with the ip if they are online. * * @param ip - IP address to ban * @param bannedBy - Who the ban is by, can be anything * @param reason - Why they are banned */ public static void banIP(String ip, String bannedBy, String reason) { plugin.addIPBan(ip, bannedBy, reason); }