mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
#884: Refinements to new ban API for improved compatibility and correctness
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user