Disable updates notifications if you are not op

This commit is contained in:
libraryaddict 2021-07-11 01:52:56 +12:00 committed by GitHub
parent 60ff44e8b1
commit 1ffe1f7c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -402,7 +402,7 @@ public class DisguiseListener implements Listener {
new BukkitRunnable() {
@Override
public void run() {
if (!p.isOnline()) {
if (!p.isOnline() || !p.isOp()) {
cancel();
return;
}