mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Cancel messaging task when the message is sent
This commit is contained in:
parent
327c8b83be
commit
247871f678
@ -72,6 +72,7 @@ public class BungeeMessagingService extends AbstractMessagingService implements
|
|||||||
Player p = Iterables.getFirst(players, null);
|
Player p = Iterables.getFirst(players, null);
|
||||||
this.channel.sendTo(p, buf -> buf.writeUTF(message));
|
this.channel.sendTo(p, buf -> buf.writeUTF(message));
|
||||||
|
|
||||||
|
task.cancel();
|
||||||
}).submit(plugin);
|
}).submit(plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user