Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
KickCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandMessage.h"
7#include "mc/server/commands/CommandSelector.h"
8#include "mc/server/commands/ServerCommand.h"
9
10// auto generated forward declare list
11// clang-format off
12class CommandOrigin;
13class CommandOutput;
14class CommandRegistry;
15class Level;
16class Minecraft;
17class Player;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mPlayers;
25 ::ll::TypedStorage<8, 32, ::CommandMessage> mMessage;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
32 // NOLINTEND
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCNAPI bool
39 // NOLINTEND
40
41public:
42 // static functions
43 // NOLINTBEGIN
44 MCNAPI static void
45 _generateSuccessOutput(::CommandOutput& output, ::std::string const& playerNameTag, ::std::string const& reason);
46
47 MCNAPI static void _kickPlayer(
48 ::Minecraft* game,
49 ::Player const& matchingPlayer,
50 ::std::string const& message,
51 ::std::optional<::std::string> filteredMessage
52 );
53
54 MCAPI static void setup(::CommandRegistry& registry);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCNAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
61
62
63 // NOLINTEND
64};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition KickCommand.h:20
static MCAPI void _generateSuccessOutput(::CommandOutput &output, ::std::string const &playerNameTag, ::std::string const &reason)
static MCAPI void _kickPlayer(::Minecraft *game, ::Player const &matchingPlayer, ::std::string const &message, ::std::optional<::std::string > filteredMessage)
MCAPI bool _canKickPlayerOrGenerateFailureOutput(::Player const &player, ::CommandOutput &output, ::Level *level) const
MCAPI void $execute(::CommandOrigin const &origin, ::CommandOutput &output) const
Definition Level.h:255
Definition Minecraft.h:59
Definition Player.h:131
Definition ServerCommand.h:22