Cancel messaging task when the message is sent

This commit is contained in:
Luck 2017-01-22 21:47:57 +00:00
parent 327c8b83be
commit 247871f678
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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);
}