Add permission to hide identity

This commit is contained in:
Draycia committed 2020-10-24 01:06:20 -07:00
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());
}