Cancel messaging task when the message is sent

This commit is contained in:
Luck committed 2017-01-22 21:47:57 +00:00
1 parent 327c8b83be
commit 247871f678
1 file changed
+1
@@ -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);
}