diff --git a/src/io/github/dre2n/dungeonsxl/util/messageutil/MessageUtil.java b/src/io/github/dre2n/dungeonsxl/util/messageutil/MessageUtil.java index 4c35d0f3..3f254f5a 100644 --- a/src/io/github/dre2n/dungeonsxl/util/messageutil/MessageUtil.java +++ b/src/io/github/dre2n/dungeonsxl/util/messageutil/MessageUtil.java @@ -227,6 +227,11 @@ public class MessageUtil { case UNKNOWN: UNKNOWN.sendScreenMessage(player, title, subtitle, fadeIn, show, fadeOut); break; + case v1_7_R3: + case v1_7_R4: + case OUTDATED: + OUTDATED.sendScreenMessage(player, title, subtitle, fadeIn, show, fadeOut); + break; default: return; } diff --git a/src/io/github/dre2n/dungeonsxl/util/messageutil/OUTDATED.java b/src/io/github/dre2n/dungeonsxl/util/messageutil/OUTDATED.java new file mode 100644 index 00000000..a9270061 --- /dev/null +++ b/src/io/github/dre2n/dungeonsxl/util/messageutil/OUTDATED.java @@ -0,0 +1,15 @@ +package io.github.dre2n.dungeonsxl.util.messageutil; + +import org.bukkit.ChatColor; +import org.bukkit.entity.Player; + +public class OUTDATED { + + static void sendScreenMessage(Player player, String title, String subtitle, long fadeIn, long show, long fadeOut) { + subtitle = ChatColor.translateAlternateColorCodes('&', subtitle); + title = ChatColor.translateAlternateColorCodes('&', title); + MessageUtil.sendCenteredMessage(player, title); + MessageUtil.sendCenteredMessage(player, subtitle); + } + +} diff --git a/src/io/github/dre2n/dungeonsxl/util/messageutil/UNKNOWN.java b/src/io/github/dre2n/dungeonsxl/util/messageutil/UNKNOWN.java index 4ee7a1c1..c7b50c13 100644 --- a/src/io/github/dre2n/dungeonsxl/util/messageutil/UNKNOWN.java +++ b/src/io/github/dre2n/dungeonsxl/util/messageutil/UNKNOWN.java @@ -14,16 +14,4 @@ class UNKNOWN { Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "title " + player.getName() + " title " + title); } - static void sendScreenMessage(Player player, String title, String subtitle) { - subtitle = ChatColor.translateAlternateColorCodes('&', subtitle); - title = ChatColor.translateAlternateColorCodes('&', title); - Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "title " + player.getName() + " subtitle " + subtitle); - Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "title " + player.getName() + " title " + title); - } - - public static void sendScreenMessage(Player player, String title) { - title = ChatColor.translateAlternateColorCodes('&', title); - Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "title " + player.getName() + " title \"" + title + "\""); - } - }