From 247871f678d1ab09ddb89f82b3d72ee05577f612 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 22 Jan 2017 21:47:57 +0000 Subject: [PATCH] Cancel messaging task when the message is sent --- .../lucko/luckperms/sponge/messaging/BungeeMessagingService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sponge/src/main/java/me/lucko/luckperms/sponge/messaging/BungeeMessagingService.java b/sponge/src/main/java/me/lucko/luckperms/sponge/messaging/BungeeMessagingService.java index 55bc1826d..72ee0602b 100644 --- a/sponge/src/main/java/me/lucko/luckperms/sponge/messaging/BungeeMessagingService.java +++ b/sponge/src/main/java/me/lucko/luckperms/sponge/messaging/BungeeMessagingService.java @@ -72,6 +72,7 @@ public class BungeeMessagingService extends AbstractMessagingService implements Player p = Iterables.getFirst(players, null); this.channel.sendTo(p, buf -> buf.writeUTF(message)); + task.cancel(); }).submit(plugin); }