Skip to content

Commit

Permalink
修复个bug
Browse files Browse the repository at this point in the history
  • Loading branch information
glorydark committed Feb 20, 2024
1 parent 7a496ed commit 1adc54f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/glorydark/DLevelEventPlus/CheckTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ public void onRun(int i) {
}
}
if (PermissionAPI.isAdmin(player)) {
player.setGamemode(Server.getInstance().getDefaultGamemode());
if (player.isImmobile()) {
player.setImmobile(false);
player.setGamemode(Server.getInstance().getDefaultGamemode());
}
return;
}
if (PermissionAPI.isOperator(player, player.getLevel())) {
player.setGamemode(Server.getInstance().getDefaultGamemode());
if (player.isImmobile()) {
player.setImmobile(false);
player.setGamemode(Server.getInstance().getDefaultGamemode());
}
return;
}
Expand Down

0 comments on commit 1adc54f

Please sign in to comment.