mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Unnecessary line change
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
220217fcc1
commit
915836f490
@ -32,13 +32,14 @@ public class ChatMessageListener {
|
||||
}
|
||||
|
||||
public static void chatMessageListener(ClientChatMessagePacket packet, Player player) {
|
||||
final String message = packet.message();
|
||||
if (!Messenger.canReceiveMessage(player)) {
|
||||
Messenger.sendRejectionMessage(player);
|
||||
return;
|
||||
}
|
||||
|
||||
final Collection<Player> players = CONNECTION_MANAGER.getOnlinePlayers();
|
||||
PlayerChatEvent playerChatEvent = new PlayerChatEvent(player, players, () -> buildDefaultChatMessage(player, packet.message()), packet.message());
|
||||
PlayerChatEvent playerChatEvent = new PlayerChatEvent(player, players, () -> buildDefaultChatMessage(player, message), message);
|
||||
|
||||
// Call the event
|
||||
EventDispatcher.callCancellable(playerChatEvent, () -> {
|
||||
|
Loading…
Reference in New Issue
Block a user