diff --git a/src/Command.cpp b/src/Command.cpp index 47c75f5..ffcefbf 100644 --- a/src/Command.cpp +++ b/src/Command.cpp @@ -1,5 +1,13 @@ #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() { auto& cmd = ll::command::CommandRegistrar::getInstance().getOrCreateCommand( "inventorycheck", diff --git a/src/Entry.cpp b/src/Entry.cpp index 0f66cfc..8951307 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -2,6 +2,17 @@ #include "Global.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); namespace InventoryCheck { diff --git a/src/Entry.h b/src/Entry.h index f052298..af7486b 100644 --- a/src/Entry.h +++ b/src/Entry.h @@ -3,6 +3,9 @@ #include "Config.h" #include "Global.h" +#include "gmlib/gm/i18n/LangI18n.h" + +#include namespace InventoryCheck { diff --git a/src/Global.h b/src/Global.h index 1c6efdc..3fb8c3c 100644 --- a/src/Global.h +++ b/src/Global.h @@ -2,12 +2,14 @@ #include -#include +#include "mc/world/actor/player/Player.h" + +#include +#include #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 const& data = {}); diff --git a/src/InventoryCheck.cpp b/src/InventoryCheck.cpp index e609413..d77d3d2 100644 --- a/src/InventoryCheck.cpp +++ b/src/InventoryCheck.cpp @@ -1,4 +1,23 @@ #include "Global.h" +#include "Entry.h" + +#include +#include + +#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 bool saveInventory(Player& player) { auto& pl = static_cast(player);