mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Add permission to hide identity
This commit is contained in:
1 parent
d9ab711adc
commit
0bb0bcca96
1 file changed
+4
@@ -69,6 +69,10 @@ public class BukkitPlayerUser implements PlayerUser, ForwardingAudience.Single {
|
||||
|
||||
@Override
|
||||
public @NonNull Identity identity() {
|
||||
if (this.hasPermission("carbonchat.hideidentity")) {
|
||||
return Identity.nil();
|
||||
}
|
||||
|
||||
return Identity.identity(this.uuid());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user