Skip to content

Commit

Permalink
1.7.17 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed Apr 13, 2020
1 parent d1ceb53 commit 64e7125
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions src/com/loohp/interactivechat/Listeners/LegacyEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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<String> playernames = new ArrayList<String>();
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 64e7125

Please sign in to comment.