#884: Refinements to new ban API for improved compatibility and correctness
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
ba835793ed
commit
cc8a890979
5 changed files with 25 additions and 14 deletions
|
@ -4,7 +4,7 @@ import com.google.common.collect.ImmutableList;
|
|||
import java.awt.image.BufferedImage;
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.InetAddress;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
|
@ -1208,7 +1208,7 @@ public final class Bukkit {
|
|||
*
|
||||
* @param address the IP address to ban
|
||||
*
|
||||
* @deprecated see {@link #banIP(InetSocketAddress)}
|
||||
* @deprecated see {@link #banIP(InetAddress)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static void banIP(@NotNull String address) {
|
||||
|
@ -1220,7 +1220,7 @@ public final class Bukkit {
|
|||
*
|
||||
* @param address the IP address to unban
|
||||
*
|
||||
* @deprecated see {@link #unbanIP(InetSocketAddress)}
|
||||
* @deprecated see {@link #unbanIP(InetAddress)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static void unbanIP(@NotNull String address) {
|
||||
|
@ -1232,7 +1232,7 @@ public final class Bukkit {
|
|||
*
|
||||
* @param address the IP address to ban
|
||||
*/
|
||||
public static void banIP(@NotNull InetSocketAddress address) {
|
||||
public static void banIP(@NotNull InetAddress address) {
|
||||
server.banIP(address);
|
||||
}
|
||||
|
||||
|
@ -1241,7 +1241,7 @@ public final class Bukkit {
|
|||
*
|
||||
* @param address the IP address to unban
|
||||
*/
|
||||
public static void unbanIP(@NotNull InetSocketAddress address) {
|
||||
public static void unbanIP(@NotNull InetAddress address) {
|
||||
server.unbanIP(address);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue