feat: add deletePlayerNbt

This commit is contained in:
Tsubasa6848
2024-05-15 00:02:13 +08:00
Unverified
parent e08e5d99eb
commit 5068892612
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -69,6 +69,10 @@ void Export_Compatibility_API() {
return GMLIB_Player::setPlayerNbtTags(uid, *nbt, tags);
}
);
RemoteCall::exportAs("GMLIB_API", "deletePlayerNbt", [](std::string uuid) -> bool {
auto uid = mce::UUID::fromString(uuid);
return GMLIB_Player::deletePlayerNbt(uid);
});
RemoteCall::exportAs("GMLIB_API", "getAllExperiments", []() -> std::vector<int> {
auto map = GMLIB_Level::getAllExperiments();
std::vector<int> result;