From d64f9729a5cfde71e6a9337f5872edb820f0326a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bro=C4=8Dko?= Date: Sat, 8 Sep 2018 02:17:41 +0200 Subject: [PATCH] ChatNotifier: pop-up notification --- src/cz/marwland/mc/essentials/features/ChatNotifier.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cz/marwland/mc/essentials/features/ChatNotifier.java b/src/cz/marwland/mc/essentials/features/ChatNotifier.java index 26a25c0..93e2a74 100644 --- a/src/cz/marwland/mc/essentials/features/ChatNotifier.java +++ b/src/cz/marwland/mc/essentials/features/ChatNotifier.java @@ -5,6 +5,8 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.player.AsyncPlayerChatEvent; +import com.connorlinfoot.bountifulapi.BountifulAPI; + import cz.marwland.mc.core.MarwCore; import cz.marwland.mc.core.features.Feature; import net.md_5.bungee.api.ChatColor; @@ -22,7 +24,7 @@ public class ChatNotifier extends Feature { String msg = e.getMessage(); if (e.getMessage().toLowerCase().contains(p.getName().toLowerCase()) && p.getPlayer() != e.getPlayer()) { msg = ChatColor.RED + msg; - // ActionBarAPI.sendActionBar(p, ChatColor.RED + "Byl jsi zminen v chatu", 80); + BountifulAPI.sendActionBar(p, ChatColor.RED + "Byl jsi zminen v chatu!"); p.playSound(p.getLocation(), Sound.ENTITY_EXPERIENCE_ORB_PICKUP, 1.0F, 3.0F); } p.sendMessage(String.format(e.getFormat(), e.getPlayer().getDisplayName(), msg));