summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/JsonListEntrySerializer.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2014-04-17 03:31:49 -0500
committerTravis Watkins <amaranth@ubuntu.com>2014-04-17 03:31:49 -0500
commit6ad36f09e5173baa3b8f464bae4d0d20411080ec (patch)
tree8e998312dd5ba3c293aaa9a8889390fc65289097 /src/main/java/net/minecraft/server/JsonListEntrySerializer.java
parent5cbbcae9a92da70de89469c31d63d145b8b86f8b (diff)
downloadcraftbukkit-6ad36f09e5173baa3b8f464bae4d0d20411080ec.tar
craftbukkit-6ad36f09e5173baa3b8f464bae4d0d20411080ec.tar.gz
craftbukkit-6ad36f09e5173baa3b8f464bae4d0d20411080ec.tar.lz
craftbukkit-6ad36f09e5173baa3b8f464bae4d0d20411080ec.tar.xz
craftbukkit-6ad36f09e5173baa3b8f464bae4d0d20411080ec.zip
Fix getting white list, ban list, and op list. Fixes BUKKIT-5538
The getEntries methods on these return player names instead of UUIDs. As we need the UUIDs for our API we add a getValues method to get at the data we need. To further ensure we get the most data possible we also add a way to get at the stored GameProfile to ensure we always have both the UUID and the name from the list.
Diffstat (limited to 'src/main/java/net/minecraft/server/JsonListEntrySerializer.java')
-rw-r--r--src/main/java/net/minecraft/server/JsonListEntrySerializer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/JsonListEntrySerializer.java b/src/main/java/net/minecraft/server/JsonListEntrySerializer.java
index b6aba6a6..f4eee668 100644
--- a/src/main/java/net/minecraft/server/JsonListEntrySerializer.java
+++ b/src/main/java/net/minecraft/server/JsonListEntrySerializer.java
@@ -1,5 +1,7 @@
package net.minecraft.server;
+// CraftBukkit - Imported for package private use in JsonList
+
import java.lang.reflect.Type;
import net.minecraft.util.com.google.gson.JsonDeserializationContext;