LeviLamina
Loading...
Searching...
No Matches
PermissionsFile.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/FileReadResult.h"
7#include "mc/server/commands/CommandPermissionLevel.h"
8#include "mc/server/commands/PlayerPermissionLevel.h"
9
10// auto generated forward declare list
11// clang-format off
12class Player;
14namespace Json { class Value; }
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 PermissionsFile& operator=(PermissionsFile const&);
30
31public:
32 // member functions
33 // NOLINTBEGIN
35 ::Player& player,
36 ::UserEntityIdentifierComponent const& userIdentifier,
37 ::CommandPermissionLevel opCommandPermissionLevel
38 );
39
40 MCNAPI bool fileExists() const;
41
42 MCNAPI ::std::vector<::std::string> getXUIDsByPermission(::PlayerPermissionLevel permission) const;
43
44 MCNAPI bool isPermissionsSet(::std::string const& xuid, ::PlayerPermissionLevel permission) const;
45
47 ::UserEntityIdentifierComponent const& userIdentifier,
48 ::PlayerPermissionLevel permission
49 );
50
51 MCNAPI void persistPlayerPermissionsToDisk(::std::string const& xuid, ::PlayerPermissionLevel permission);
52
53 MCNAPI ::std::tuple<::FileReadResult, ::Json::Value> readPermissionFile();
54
55 MCNAPI ::FileReadResult reload();
56
57 MCNAPI void setDefaultPlayerPermission(::Player& player, ::CommandPermissionLevel opCommandPermissionLevel);
58 // NOLINTEND
59};
Definition PermissionsFile.h:17
MCAPI bool fileExists() const
MCAPI void setDefaultPlayerPermission(::Player &player, ::CommandPermissionLevel opCommandPermissionLevel)
MCAPI void persistPlayerPermissionsToDisk(::std::string const &xuid, ::PlayerPermissionLevel permission)
MCAPI void persistPlayerPermissionsToDisk(::UserEntityIdentifierComponent const &userIdentifier, ::PlayerPermissionLevel permission)
MCAPI ::std::vector<::std::string > getXUIDsByPermission(::PlayerPermissionLevel permission) const
MCAPI bool isPermissionsSet(::std::string const &xuid, ::PlayerPermissionLevel permission) const
MCAPI ::std::tuple<::FileReadResult, ::Json::Value > readPermissionFile()
MCAPI void applyPlayerPermissionsFromDisk(::Player &player, ::UserEntityIdentifierComponent const &userIdentifier, ::CommandPermissionLevel opCommandPermissionLevel)
MCAPI::FileReadResult reload()
Definition Player.h:119
Definition UserEntityIdentifierComponent.h:11
Definition Alias.h:14