Added permissions check for ranged spy.

This commit is contained in:
Aust1n46 2021-02-13 23:11:30 -06:00
parent a1e8b7bb4f
commit 9b04925c35

View File

@ -107,6 +107,12 @@ public class MineverseChatPlayer {
}
public boolean getRangedSpy() {
if(isOnline()) {
if(!getPlayer().hasPermission("venturechat.rangedspy")) {
setRangedSpy(false);
return false;
}
}
return this.rangedSpy;
}