Skip to content

Commit

Permalink
给予权限后会被设置为服务器默认模式
Browse files Browse the repository at this point in the history
  • Loading branch information
glorydark committed Feb 20, 2024
1 parent d9e1bdf commit d79687e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>glorydark.nukkit</groupId>
<artifactId>DLevelEventPlus</artifactId>
<version>1.2.1.4</version>
<version>1.2.1.5</version>

<properties>
<maven.complier.sourceEncoding>UTF-8</maven.complier.sourceEncoding>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/glorydark/DLevelEventPlus/CheckTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ public void onRun(int i) {
}
}
if (PermissionAPI.isAdmin(player)) {
player.setGamemode(Server.getInstance().getDefaultGamemode());
if (player.isImmobile()) {
player.setImmobile(false);
}
return;
}
if (PermissionAPI.isOperator(player, player.getLevel())) {
player.setGamemode(Server.getInstance().getDefaultGamemode());
if (player.isImmobile()) {
player.setImmobile(false);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: DLevelEventPlus
main: glorydark.DLevelEventPlus.LevelEventPlusMain
version: "1.2.1.4"
version: "1.2.1.5"
author: glorydark
api: ["1.0.0"]
description: DLevelEventPlus
Expand Down

0 comments on commit d79687e

Please sign in to comment.