Make bans pretend to use names like before 1.7.8.

Bans require a name and UUID but our API only allows for a single string
identifier for a ban entry. Until this is sorted out go back to the old
name based setup since we can always get a UUID given a name.
This commit is contained in:
Travis Watkins
2014-04-17 10:45:10 -05:00
parent a8d5c1224f
commit 3e911dba54
5 changed files with 28 additions and 19 deletions

View File

@@ -1356,8 +1356,6 @@ public final class CraftServer implements Server {
case IP:
return new CraftIpBanList(playerList.getIPBans());
case NAME:
return null;
case UUID:
default:
return new CraftProfileBanList(playerList.getProfileBans());
}