Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Added getUniqueId() to TestOfflinePermissible.
Dieser Commit ist enthalten in:
Ursprung
69797cfbea
Commit
0148e8bcc6
@ -28,13 +28,11 @@ import org.bukkit.permissions.PermissionAttachment;
|
|||||||
import org.bukkit.permissions.PermissionAttachmentInfo;
|
import org.bukkit.permissions.PermissionAttachmentInfo;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.*;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
public class TestOfflinePermissible implements OfflinePlayer, Permissible {
|
public class TestOfflinePermissible implements OfflinePlayer, Permissible {
|
||||||
private boolean op;
|
private boolean op;
|
||||||
|
private UUID randomUuid = UUID.randomUUID();
|
||||||
|
|
||||||
private final Map<String, Boolean> assignedPermissions = new HashMap<String, Boolean>();
|
private final Map<String, Boolean> assignedPermissions = new HashMap<String, Boolean>();
|
||||||
|
|
||||||
@ -119,6 +117,10 @@ public class TestOfflinePermissible implements OfflinePlayer, Permissible {
|
|||||||
return "Tester";
|
return "Tester";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public UUID getUniqueId() {
|
||||||
|
return randomUuid;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isBanned() {
|
public boolean isBanned() {
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren