From df08315cf4c1514935abd00a41ce78284f1d979a Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 3 Sep 2011 01:59:28 +0100 Subject: [PATCH] Implemented IP-banning methods By: Dinnerbone --- .../java/org/bukkit/craftbukkit/CraftServer.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 8821739b0b..ef0863745f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -22,6 +22,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; +import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -816,4 +817,16 @@ public final class CraftServer implements Server { return result; } + + public Set getIPBans() { + return new HashSet(server.banByIP); + } + + public void banIP(String address) { + server.c(address); + } + + public void unbanIP(String address) { + server.d(address); + } }