From d79687e3af7d4b13d8218f246d4325ac56bfdf38 Mon Sep 17 00:00:00 2001
From: glorydark <1083215364@qq.com>
Date: Tue, 20 Feb 2024 18:32:06 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E4=BA=88=E6=9D=83=E9=99=90=E5=90=8E?=
=?UTF-8?q?=E4=BC=9A=E8=A2=AB=E8=AE=BE=E7=BD=AE=E4=B8=BA=E6=9C=8D=E5=8A=A1?=
=?UTF-8?q?=E5=99=A8=E9=BB=98=E8=AE=A4=E6=A8=A1=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 2 +-
src/main/java/glorydark/DLevelEventPlus/CheckTask.java | 2 ++
src/main/resources/plugin.yml | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 058132d..c7d535c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
glorydark.nukkit
DLevelEventPlus
- 1.2.1.4
+ 1.2.1.5
UTF-8
diff --git a/src/main/java/glorydark/DLevelEventPlus/CheckTask.java b/src/main/java/glorydark/DLevelEventPlus/CheckTask.java
index 98c3cd0..f0fa5a0 100644
--- a/src/main/java/glorydark/DLevelEventPlus/CheckTask.java
+++ b/src/main/java/glorydark/DLevelEventPlus/CheckTask.java
@@ -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);
}
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 159d48b..0a7eb3a 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -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