diff --git a/.gitignore b/.gitignore index 9bfef8b..3a8687a 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ CMakeSettings.json build/ /.xmake /CMakeLists.txt -/bin \ No newline at end of file +/bin +.cache/clangd/index diff --git a/src/LegacyServerApi.cpp b/src/LegacyServerApi.cpp index 7fc0f8e..8a4c57b 100644 --- a/src/LegacyServerApi.cpp +++ b/src/LegacyServerApi.cpp @@ -1,4 +1,6 @@ +#include "GMLIB/Server/FakeListAPI.h" #include "Global.h" +#include "mc/world/ActorUniqueID.h" void Export_Legacy_GMLib_ServerAPI() { RemoteCall::exportAs("GMLib_ServerAPI", "setEducationFeatureEnabled", []() -> void { @@ -51,4 +53,7 @@ void Export_Legacy_GMLib_ServerAPI() { } ); RemoteCall::exportAs("GMLib_ServerAPI", "PlayerToEntity", [](Player* player) -> Actor* { return (Actor*)player; }); + RemoteCall::exportAs("GMLib_ServerAPI", "addFakeList", [](const std::string& xuid,const std::string& name) -> bool { return GMLIB::Server::FakeList::addFakeList(name,xuid,ActorUniqueID(-1)); }); + RemoteCall::exportAs("GMLib_ServerAPI", "removeFakeList", [](const std::string& nameOrXuid) -> bool { return GMLIB::Server::FakeList::removeFakeList(nameOrXuid); }); + RemoteCall::exportAs("GMLib_ServerAPI", "removeAllFakeList", []() -> void { return GMLIB::Server::FakeList::removeAllFakeLists(); }); } \ No newline at end of file