From 0148e8bcc616ab3ffde78d5c8541d16069693ade Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 5 Apr 2014 20:09:20 -0700 Subject: [PATCH] Added getUniqueId() to TestOfflinePermissible. --- .../java/com/sk89q/wepif/TestOfflinePermissible.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bukkit-test/java/com/sk89q/wepif/TestOfflinePermissible.java b/src/bukkit-test/java/com/sk89q/wepif/TestOfflinePermissible.java index 06d54c3c6..b309927cf 100644 --- a/src/bukkit-test/java/com/sk89q/wepif/TestOfflinePermissible.java +++ b/src/bukkit-test/java/com/sk89q/wepif/TestOfflinePermissible.java @@ -28,13 +28,11 @@ import org.bukkit.permissions.PermissionAttachment; import org.bukkit.permissions.PermissionAttachmentInfo; import org.bukkit.plugin.Plugin; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; +import java.util.*; public class TestOfflinePermissible implements OfflinePlayer, Permissible { private boolean op; + private UUID randomUuid = UUID.randomUUID(); private final Map assignedPermissions = new HashMap(); @@ -119,6 +117,10 @@ public class TestOfflinePermissible implements OfflinePlayer, Permissible { return "Tester"; } + public UUID getUniqueId() { + return randomUuid; + } + public boolean isBanned() { throw new UnsupportedOperationException("Not supported yet."); }