修复了经验设置不生效问题
All checks were successful
Java CI-CD with Maven / build (push) Successful in 12m18s

This commit is contained in:
zhangyuheng 2024-05-17 19:49:21 +08:00
parent ff05bb0317
commit 79fb780745
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId>
<artifactId>EssentialsD</artifactId>
<version>1.20.0</version>
<version>1.20.1</version>
<packaging>jar</packaging>
<name>EssentialsD</name>

View File

@ -40,6 +40,7 @@ public final class EssentialsD extends JavaPlugin {
Bukkit.getPluginManager().registerEvents(new ShowItemEvent(), this);
Bukkit.getPluginManager().registerEvents(new TeleportEvent(), this);
Bukkit.getPluginManager().registerEvents(new PlayerRecordEvent(), this);
Bukkit.getPluginManager().registerEvents(new Experience(), this);
// op 指令
Objects.requireNonNull(Bukkit.getPluginCommand("fly")).setExecutor(new Fly());
Objects.requireNonNull(Bukkit.getPluginCommand("god")).setExecutor(new God());