9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-31 12:46:31 +00:00
This commit is contained in:
Xiao-MoMi
2023-01-06 13:27:35 +08:00
parent 90e227ce07
commit 39f473d8cd
10 changed files with 69 additions and 118 deletions

View File

@@ -37,6 +37,7 @@ public final class CustomNameplates extends JavaPlugin {
public static CustomNameplates plugin;
public static BukkitAudiences adventure;
public static ProtocolManager protocolManager;
public static String version;
private ResourceManager resourceManager;
private BossBarManager bossBarManager;
@@ -62,6 +63,7 @@ public final class CustomNameplates extends JavaPlugin {
public void onEnable() {
adventure = BukkitAudiences.create(this);
protocolManager = ProtocolLibrary.getProtocolManager();
version = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
//Don't delete this
PacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);