From bdbe271a83545b78630640dd9200545cff81d4fe Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Tue, 26 Dec 2017 21:10:39 +0100 Subject: [PATCH] Removed #sendSubtitle() and #sendTitle() from NMSAbstraction because Spigot 1.12 supports it with Player :D --- .../bskyblock/util/nms/NMSAbstraction.java | 14 -------------- .../bskyblock/util/nms/fallback/NMSHandler.java | 10 ---------- .../bskyblock/util/nms/v1_12_R1/NMSHandler.java | 10 ---------- 3 files changed, 34 deletions(-) diff --git a/src/main/java/us/tastybento/bskyblock/util/nms/NMSAbstraction.java b/src/main/java/us/tastybento/bskyblock/util/nms/NMSAbstraction.java index ffa6f1eb5..dd9d9001d 100644 --- a/src/main/java/us/tastybento/bskyblock/util/nms/NMSAbstraction.java +++ b/src/main/java/us/tastybento/bskyblock/util/nms/NMSAbstraction.java @@ -12,20 +12,6 @@ public interface NMSAbstraction { */ void sendActionBar(Player player, String message); - /** - * Send a title to a player - * @param player - * @param message - */ - void sendTitle(Player player, String message); - - /** - * Send a subtitle to a player - * @param player - * @param message - */ - void sendSubtitle(Player player, String message); - /** * Returns the active {@link org.bukkit.command.CommandMap} of the Server. * It is used by the {@link us.tastybento.bskyblock.api.commands.CompositeCommand} to register itself. diff --git a/src/main/java/us/tastybento/bskyblock/util/nms/fallback/NMSHandler.java b/src/main/java/us/tastybento/bskyblock/util/nms/fallback/NMSHandler.java index 2612eabf4..e97bd4f2d 100644 --- a/src/main/java/us/tastybento/bskyblock/util/nms/fallback/NMSHandler.java +++ b/src/main/java/us/tastybento/bskyblock/util/nms/fallback/NMSHandler.java @@ -12,16 +12,6 @@ public class NMSHandler implements NMSAbstraction { //TODO use /title command } - @Override - public void sendTitle(Player player, String message) { - //TODO use /title command - } - - @Override - public void sendSubtitle(Player player, String message) { - //TODO use /title command - } - @Override public CommandMap getServerCommandMap() { return null; diff --git a/src/main/java/us/tastybento/bskyblock/util/nms/v1_12_R1/NMSHandler.java b/src/main/java/us/tastybento/bskyblock/util/nms/v1_12_R1/NMSHandler.java index 5d512b3ce..9d2ce8ab8 100644 --- a/src/main/java/us/tastybento/bskyblock/util/nms/v1_12_R1/NMSHandler.java +++ b/src/main/java/us/tastybento/bskyblock/util/nms/v1_12_R1/NMSHandler.java @@ -14,16 +14,6 @@ public class NMSHandler implements NMSAbstraction { } - @Override - public void sendTitle(Player player, String message) { - - } - - @Override - public void sendSubtitle(Player player, String message) { - - } - @Override public CommandMap getServerCommandMap() { return ((CraftServer) Bukkit.getServer()).getCommandMap();