Skip to content

Commit

Permalink
1.4.2 update: fix minor issue with checking permission too soon
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromMob committed Dec 18, 2024
1 parent 75ba262 commit a266061
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = 'me.chrommob'
version = '1.4.1'
version = '1.4.2'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import me.chrommob.baritoneremover.data.types.PositionData;
import me.chrommob.baritoneremover.data.types.RotationData;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

import javax.print.attribute.standard.Severity;
import java.util.HashSet;
Expand Down Expand Up @@ -97,7 +98,8 @@ public void runChecks(CheckType updateType) {
return;
}
if (TPS.get()) return;
if (Bukkit.getPlayer(name).hasPermission("br.bypass")) {
Player player = Bukkit.getPlayer(name);
if (player != null && player.hasPermission("br.bypass")) {
return;
}
checks.forEach(check -> {
Expand Down

0 comments on commit a266061

Please sign in to comment.