/** * Temporarily ban a player You must handle kicking the player if they are online. * * @param name - Name of player 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 tempBan(String name, String bannedBy, String reason, long expires) { plugin.addPlayerBan(name, bannedBy, reason, expires); }
/** * Permanently ban a player. You must handle kicking the player if they are online. * * @param name - Name of player to ban * @param bannedBy - Who the ban is by, can be anything * @param reason - Why they are banned */ public static void ban(String name, String bannedBy, String reason) { plugin.addPlayerBan(name, bannedBy, reason); }