mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +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
|
@Override
|
||||||
public boolean spying() {
|
public boolean spying() {
|
||||||
|
if (this.online() && !this.hasPermission("carbon.spy")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return this.carbonPlayerCommon.spying();
|
return this.carbonPlayerCommon.spying();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user