This commit is contained in:
YuTian 2024-08-08 16:00:49 +08:00
parent 109845d5e4
commit dde365448e
4 changed files with 9 additions and 5 deletions

View File

@ -81,13 +81,13 @@
<dependency> <dependency>
<groupId>io.papermc.paper</groupId> <groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId> <artifactId>paper-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version> <version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId> <artifactId>spigot</artifactId>
<version>1.20.1</version> <version>1.20.4</version>
<classifier>nms</classifier> <classifier>nms</classifier>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>

View File

@ -1,5 +1,6 @@
package com.io.yutian.elementoriginlib; package com.io.yutian.elementoriginlib;
import com.io.yutian.elementoriginlib.lang.Lang;
import com.io.yutian.elementoriginlib.listener.GuiHandlerListener; import com.io.yutian.elementoriginlib.listener.GuiHandlerListener;
import com.io.yutian.elementoriginlib.listener.PlayerChatInputListener; import com.io.yutian.elementoriginlib.listener.PlayerChatInputListener;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
@ -12,6 +13,9 @@ public final class ElementOriginLib extends JavaPlugin {
public void onEnable() { public void onEnable() {
instance = this; instance = this;
Lang.registerLangFile(this);
Lang.reload();
new GuiHandlerListener(this); new GuiHandlerListener(this);
new PlayerChatInputListener(this); new PlayerChatInputListener(this);
} }

View File

@ -152,7 +152,7 @@ public interface INBT {
return new NBTByteArray(tagByteArray.e()); return new NBTByteArray(tagByteArray.e());
case 8: case 8:
NBTTagString nbtTagString = (NBTTagString) nbtBase; NBTTagString nbtTagString = (NBTTagString) nbtBase;
return new NBTString(nbtTagString.m_()); return new NBTString(nbtTagString.t_());
case 9: case 9:
NBTTagList nbtTagList = (NBTTagList) nbtBase; NBTTagList nbtTagList = (NBTTagList) nbtBase;
List<INBT> list = new ArrayList<>(); List<INBT> list = new ArrayList<>();

View File

@ -1,5 +1,5 @@
name: ElementOriginLib name: ElementOriginLib
version: '1.3.6' version: '1.0'
main: com.io.yutian.elementoriginlib.ElementOriginLib main: com.io.yutian.elementoriginlib.ElementOriginLib
api-version: '1.20' api-version: '1.20'
authors: [ SuperYuTian ] authors: [ SuperYuTian ]