LeviLamina
Loading...
Searching...
No Matches
PlayerChatEvent.h
1#pragma once
2
3#include "ll/api/event/Cancellable.h"
4#include "ll/api/event/player/ServerPlayerEvent.h"
5
6namespace ll::event::inline player {
7
8class PlayerChatEvent final : public Cancellable<ServerPlayerEvent> {
9 std::string& mMessage;
10
11public:
12 constexpr explicit PlayerChatEvent(ServerPlayer& player, std::string& message)
13 : Cancellable(player),
14 mMessage(message) {}
15
16 LLAPI void serialize(CompoundTag&) const override;
17 LLAPI void deserialize(CompoundTag const&) override;
18
19 LLNDAPI std::string& message() const;
20};
21} // namespace ll::event::inline player
Definition CompoundTag.h:13
Definition ServerPlayer.h:65
Definition PlayerChatEvent.h:8
Definition serialize.h:11