mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancynpcs: Add support for 1.21.7
This commit is contained in:
@@ -30,7 +30,7 @@ public class AttributeManagerImpl implements AttributeManager {
|
||||
private void init() {
|
||||
String mcVersion = Bukkit.getMinecraftVersion();
|
||||
switch (mcVersion) {
|
||||
case "1.21.6" -> attributes = Attributes_1_21_6.getAllAttributes();
|
||||
case "1.21.6", "1.21.7" -> attributes = Attributes_1_21_6.getAllAttributes();
|
||||
case "1.21.5" -> attributes = Attributes_1_21_5.getAllAttributes();
|
||||
case "1.21.4" -> attributes = Attributes_1_21_4.getAllAttributes();
|
||||
case "1.21.2", "1.21.3" -> attributes = Attributes_1_21_3.getAllAttributes();
|
||||
|
||||
@@ -156,7 +156,7 @@ public class FancyNpcs extends JavaPlugin implements FancyNpcsPlugin {
|
||||
String mcVersion = Bukkit.getMinecraftVersion();
|
||||
|
||||
switch (mcVersion) {
|
||||
case "1.21.6" -> npcAdapter = Npc_1_21_6::new;
|
||||
case "1.21.6", "1.21.7" -> npcAdapter = Npc_1_21_6::new;
|
||||
case "1.21.5" -> npcAdapter = Npc_1_21_5::new;
|
||||
case "1.21.4" -> npcAdapter = Npc_1_21_4::new;
|
||||
case "1.21.2", "1.21.3" -> npcAdapter = Npc_1_21_3::new;
|
||||
@@ -182,7 +182,7 @@ public class FancyNpcs extends JavaPlugin implements FancyNpcsPlugin {
|
||||
fancyLogger.error("Unsupported minecraft server version.");
|
||||
getLogger().warning("--------------------------------------------------");
|
||||
getLogger().warning("Unsupported minecraft server version.");
|
||||
getLogger().warning("This plugin only supports 1.19.4 - 1.21.6");
|
||||
getLogger().warning("This plugin only supports 1.19.4 - 1.21.7");
|
||||
getLogger().warning("Disabling the FancyNpcs plugin.");
|
||||
getLogger().warning("--------------------------------------------------");
|
||||
pluginManager.disablePlugin(this);
|
||||
@@ -268,7 +268,7 @@ public class FancyNpcs extends JavaPlugin implements FancyNpcsPlugin {
|
||||
pluginManager.registerEvents(new PlayerTeleportListener(), instance);
|
||||
pluginManager.registerEvents(new PlayerChangedWorldListener(), instance);
|
||||
pluginManager.registerEvents(skinManager, instance);
|
||||
if (Bukkit.getMinecraftVersion().equals("1.21.4") || Bukkit.getMinecraftVersion().equals("1.21.5") || Bukkit.getMinecraftVersion().equals("1.21.6")) {
|
||||
if (Bukkit.getMinecraftVersion().equals("1.21.4") || Bukkit.getMinecraftVersion().equals("1.21.5") || Bukkit.getMinecraftVersion().equals("1.21.6") || Bukkit.getMinecraftVersion().equals("1.21.7")) {
|
||||
getServer().getPluginManager().registerEvents(new PlayerLoadedListener(), this);
|
||||
}
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ public final class CloudCommandManager {
|
||||
}
|
||||
|
||||
String mcVersion = Bukkit.getMinecraftVersion();
|
||||
if (mcVersion.equals("1.20.5") || mcVersion.equals("1.20.6") || mcVersion.equals("1.21") || mcVersion.equals("1.21.1") || mcVersion.equals("1.21.2") || mcVersion.equals("1.21.3") || mcVersion.equals("1.21.4") || mcVersion.equals("1.21.5") || mcVersion.equals("1.21.6")) {
|
||||
if (mcVersion.equals("1.20.5") || mcVersion.equals("1.20.6") || mcVersion.equals("1.21") || mcVersion.equals("1.21.1") || mcVersion.equals("1.21.2") || mcVersion.equals("1.21.3") || mcVersion.equals("1.21.4") || mcVersion.equals("1.21.5") || mcVersion.equals("1.21.6") || mcVersion.equals("1.21.7")) {
|
||||
annotationParser.parse(ScaleCMD.INSTANCE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user