Skip to content

Commit 08dc18b

Browse files
committed
permission to send chat bubbles
1 parent 9d45019 commit 08dc18b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/volmit/gloss/chatbubbles/GlossChatBubbles.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public void on(PlayerQuitEvent e)
5757
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
5858
public void on(AsyncPlayerChatEvent e)
5959
{
60-
if(e.isCancelled() || Config.blacklist.contains(e.getPlayer().getLocation().getWorld().getName()))
60+
if(e.isCancelled() || Config.blacklist.contains(e.getPlayer().getLocation().getWorld().getName()) ||
61+
!e.getPlayer().hasPermission("gloss.chatbubbles.use"))
6162
{
6263
return;
6364
}

0 commit comments

Comments
 (0)