We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5697d24 commit 574db13Copy full SHA for 574db13
1 file changed
bungee/src/main/java/com/wizardlybump17/wlib/bungee/command/sender/BungeeCommandSender.java
@@ -84,4 +84,11 @@ public boolean hasPermission(String permission) {
84
public boolean hasId(@NotNull UUID id) {
85
return handle instanceof ProxiedPlayer player && player.getUniqueId().equals(id);
86
}
87
+
88
+ @Override
89
+ public @NotNull UUID getId() throws IllegalStateException {
90
+ if (handle instanceof ProxiedPlayer player)
91
+ return player.getUniqueId();
92
+ throw new IllegalStateException(handle + " does not have an ID");
93
+ }
94
0 commit comments