From 64e7125caa37ce0f577f71c83e32c47f86813e93 Mon Sep 17 00:00:00 2001 From: LOOHP Date: Mon, 13 Apr 2020 18:40:48 +0800 Subject: [PATCH] 1.7.17 Update --- .../interactivechat/Listeners/LegacyEvents.java | 15 +++++++-------- src/plugin.yml | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/com/loohp/interactivechat/Listeners/LegacyEvents.java b/src/com/loohp/interactivechat/Listeners/LegacyEvents.java index 2ee586b9..1de2e27e 100644 --- a/src/com/loohp/interactivechat/Listeners/LegacyEvents.java +++ b/src/com/loohp/interactivechat/Listeners/LegacyEvents.java @@ -41,9 +41,9 @@ import com.loohp.interactivechat.API.Events.PlayerMentionPlayerEvent; import com.loohp.interactivechat.API.Events.PostPacketComponentProcessEvent; import com.loohp.interactivechat.API.Events.PrePacketComponentProcessEvent; +import com.loohp.interactivechat.Utils.ChatColorFilter; import com.loohp.interactivechat.Utils.ChatColorUtils; import com.loohp.interactivechat.Utils.CustomStringUtils; -import com.loohp.interactivechat.Utils.ChatColorFilter; import com.loohp.interactivechat.Utils.JsonUtils; import com.loohp.interactivechat.Utils.KeyUtils; import com.loohp.interactivechat.Utils.MaterialUtils; @@ -127,7 +127,6 @@ public void addKeyChatManager(AsyncPlayerChatEvent event) { //BungeeMessageSender.forwardHashMap(event.getPlayer(), InteractiveChat.messageKeyUUID, 0); } - @SuppressWarnings("deprecation") @EventHandler(priority=EventPriority.LOWEST) public void onCheckMaxAndMention(AsyncPlayerChatEvent event) { String message = event.getMessage(); @@ -158,12 +157,12 @@ public void onCheckMaxAndMention(AsyncPlayerChatEvent event) { Player sender = event.getPlayer(); if (InteractiveChat.AllowMention == true && sender.hasPermission("interactivechat.mention.player")) { - for (String each : message.split(" ")) { - if (Bukkit.getOfflinePlayer(each) != null) { - InteractiveChat.mentionPair.put(Bukkit.getOfflinePlayer(each).getUniqueId(), sender.getUniqueId()); - //BungeeMessageSender.forwardHashMap(sender, InteractiveChat.mentionPair, 4); - } - } + //for (String each : message.split(" ")) { + // if (Bukkit.getOfflinePlayer(each) != null) { + // InteractiveChat.mentionPair.put(Bukkit.getOfflinePlayer(each).getUniqueId(), sender.getUniqueId()); + // //BungeeMessageSender.forwardHashMap(sender, InteractiveChat.mentionPair, 4); + // } + //} for (Player player : Bukkit.getOnlinePlayers()) { if (!player.equals(sender)) { List playernames = new ArrayList(); diff --git a/src/plugin.yml b/src/plugin.yml index b621b5f8..74df7774 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: InteractiveChat author: loohp -version: 1.7.16 +version: 1.7.17 main: com.loohp.interactivechat.InteractiveChat api-version: 1.13 description: Make the chat interactive