mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 02:19:05 +00:00
Added permissions check for ranged spy.
This commit is contained in:
parent
a1e8b7bb4f
commit
9b04925c35
@ -107,6 +107,12 @@ public class MineverseChatPlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean getRangedSpy() {
|
public boolean getRangedSpy() {
|
||||||
|
if(isOnline()) {
|
||||||
|
if(!getPlayer().hasPermission("venturechat.rangedspy")) {
|
||||||
|
setRangedSpy(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return this.rangedSpy;
|
return this.rangedSpy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user