mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Spy check should also check permissions
This commit is contained in:
1 parent
3e0487ba1f
commit
503bdcc4db
1 file changed
+4
@@ -304,6 +304,10 @@ public abstract class WrappedCarbonPlayer implements CarbonPlayer {
|
||||
|
||||
@Override
|
||||
public boolean spying() {
|
||||
if (this.online() && !this.hasPermission("carbon.spy")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.carbonPlayerCommon.spying();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user