mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +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
|
@Override
|
||||||
public @NonNull Identity identity() {
|
public @NonNull Identity identity() {
|
||||||
|
if (this.hasPermission("carbonchat.hideidentity")) {
|
||||||
|
return Identity.nil();
|
||||||
|
}
|
||||||
|
|
||||||
return Identity.identity(this.uuid());
|
return Identity.identity(this.uuid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user