13
0
geforkt von Mirrors/Paper

Implemented IP-banning methods

By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-09-03 01:59:28 +01:00
Ursprung d1c68e10a9
Commit df08315cf4

Datei anzeigen

@ -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<String> getIPBans() {
return new HashSet(server.banByIP);
}
public void banIP(String address) {
server.c(address);
}
public void unbanIP(String address) {
server.d(address);
}
}