reflector: standard include
use standard include instead of INCLUDE-ALL Signed-off-by: wed150 <wed15058338634@outlook.com>
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
|
|
||||||
|
#include "mc/server/commands/CommandRegistry.h"
|
||||||
|
#include "mc/server/commands/CommandOutput.h"
|
||||||
|
|
||||||
|
#include "ll/api/command/CommandHandle.h"
|
||||||
|
#include "ll/api/service/Bedrock.h"
|
||||||
|
|
||||||
|
#include "gmlib/mc/world/actor/Actor.h"
|
||||||
|
|
||||||
void RegisterCommand() {
|
void RegisterCommand() {
|
||||||
auto& cmd = ll::command::CommandRegistrar::getInstance().getOrCreateCommand(
|
auto& cmd = ll::command::CommandRegistrar::getInstance().getOrCreateCommand(
|
||||||
"inventorycheck",
|
"inventorycheck",
|
||||||
|
|||||||
@@ -2,6 +2,17 @@
|
|||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
|
|
||||||
|
#include "ll/api/Config.h"
|
||||||
|
#include "ll/api/Versions.h"
|
||||||
|
#include "ll/api/mod/RegisterHelper.h"
|
||||||
|
|
||||||
|
#include "gmlib/gm/i18n/LangI18n.h"
|
||||||
|
#include "gmlib/gm/i18n/JsonI18n.h"
|
||||||
|
|
||||||
|
#include "gmlib/gm/data/UserCache.h"
|
||||||
|
#include "ll/api/service/Bedrock.h"
|
||||||
|
#include "ll/api/service/PlayerInfo.h"
|
||||||
|
|
||||||
ll::Logger logger(MOD_NAME);
|
ll::Logger logger(MOD_NAME);
|
||||||
|
|
||||||
namespace InventoryCheck {
|
namespace InventoryCheck {
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
|
#include "gmlib/gm/i18n/LangI18n.h"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
namespace InventoryCheck {
|
namespace InventoryCheck {
|
||||||
|
|
||||||
|
|||||||
+5
-3
@@ -2,12 +2,14 @@
|
|||||||
|
|
||||||
#include <span>
|
#include <span>
|
||||||
|
|
||||||
#include <include_all.h>
|
#include "mc/world/actor/player/Player.h"
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#define MOD_NAME "InventoryCheck"
|
#define MOD_NAME "InventoryCheck"
|
||||||
#define TARGET_PROTOCOL 686
|
#define TARGET_PROTOCOL 944
|
||||||
|
|
||||||
extern ll::Logger logger;
|
|
||||||
|
|
||||||
extern std::string tr(std::string const& key, std::vector<std::string> const& data = {});
|
extern std::string tr(std::string const& key, std::vector<std::string> const& data = {});
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,23 @@
|
|||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
|
#include "Entry.h"
|
||||||
|
|
||||||
|
#include <filesystem>
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
|
#include "mc/world/level/Level.h"
|
||||||
|
#include "mc/world/level/storage/DBStorage.h"
|
||||||
|
#include "mc/world/actor/player/PlayerListEntry.h"
|
||||||
|
|
||||||
|
#include "ll/api/service/Bedrock.h"
|
||||||
|
#include "ll/api/io/FileUtils.h"
|
||||||
|
|
||||||
|
#include "ll/api/form/ModalForm.h"
|
||||||
|
#include "ll/api/form/SimpleForm.h"
|
||||||
|
#include "ll/api/form/CustomForm.h"
|
||||||
|
|
||||||
|
#include "gmlib/mc/world/actor/OfflinePlayer.h"
|
||||||
|
|
||||||
|
#include <ll/api/service/PlayerInfo.h>
|
||||||
|
|
||||||
bool saveInventory(Player& player) {
|
bool saveInventory(Player& player) {
|
||||||
auto& pl = static_cast<GMLIB_Player&>(player);
|
auto& pl = static_cast<GMLIB_Player&>(player);
|
||||||
|
|||||||
Reference in New Issue
Block a user