diff --git a/SDK-GMLIB b/SDK-GMLIB index 695c14b..e4f3e2a 160000 --- a/SDK-GMLIB +++ b/SDK-GMLIB @@ -1 +1 @@ -Subproject commit 695c14b6307e5dd095699348bd9ce5ba78cb4f17 +Subproject commit e4f3e2a188eb9218789c841e4dd4ea2b23d5ef02 diff --git a/manifest.json b/manifest.json index 30f9af8..3ef3cd6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "${pluginName}", "entry": "${pluginFile}", - "version": "0.12.0", + "version": "0.12.1", "author": "GroupMountain", "type": "native", "dependencies": [ diff --git a/src/CompatibilityApi.cpp b/src/CompatibilityApi.cpp index 41ee6fd..bb36622 100644 --- a/src/CompatibilityApi.cpp +++ b/src/CompatibilityApi.cpp @@ -112,7 +112,7 @@ void Export_Compatibility_API() { RemoteCall::exportAs("GMLIB_API", "sendFloatingTextToPlayer", [](int id, Player* pl) -> bool { auto ft = GMLIB::Server::FloatingText::getFloatingText(id); if (ft) { - ft->sendToClient(pl); + ft->sendToClient(*pl); return true; } return false; @@ -128,7 +128,7 @@ void Export_Compatibility_API() { RemoteCall::exportAs("GMLIB_API", "removeFloatingTextFromPlayer", [](int id, Player* pl) -> bool { auto ft = GMLIB::Server::FloatingText::getFloatingText(id); if (ft) { - ft->removeFromClient(pl); + ft->removeFromClient(*pl); return true; } return false; @@ -144,7 +144,7 @@ void Export_Compatibility_API() { RemoteCall::exportAs("GMLIB_API", "updateClientFloatingTextData", [](int id, Player* pl) -> bool { auto ft = GMLIB::Server::FloatingText::getFloatingText(id); if (ft) { - ft->updateClient(pl); + ft->updateClient(*pl); return true; } return false; diff --git a/src/Entry.cpp b/src/Entry.cpp index cac3698..725e1d1 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -17,7 +17,11 @@ bool LRCA::load() { ExportPAPI(); Export_Event_API(); logger.info("GMLIB-LegacyRemoteCallApi Loaded!"); - logger.info("Version: {}", LIB_VERSION.asString()); + logger.info( + "Loaded Version: {} with {}", + fmt::format(fg(fmt::color::pink), "GMLIB-" + GMLIB::Version::getLibVersionString()), + fmt::format(fg(fmt::color::light_green), "GMLIB-LegacyRemoteCallApi-"+LIB_VERSION.asString()) + ); logger.info("Author: GroupMountain"); logger.info("Repository: https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi"); return true; diff --git a/src/Global.h b/src/Global.h index 6046573..bb03b97 100644 --- a/src/Global.h +++ b/src/Global.h @@ -3,8 +3,9 @@ #include -#define PLUGIN_NAME "GMLIB-LRCA" -#define LIB_VERSION GMLIB::Version(0, 12, 0) +#define PLUGIN_NAME fmt::format(fg(fmt::color::light_green), "GMLIB-LRCA") + +#define LIB_VERSION GMLIB::Version(0, 12, 1) extern ll::Logger logger; diff --git a/tooth.json b/tooth.json index 88acd9f..8f89620 100644 --- a/tooth.json +++ b/tooth.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi", - "version": "0.12.0", + "version": "0.12.1", "info": { "name": "GMLIB-LegacyRemoteCallApi", "description": "Legacy RemoteCall API for GMLIB", @@ -14,9 +14,9 @@ "library" ] }, - "asset_url": "https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/releases/download/v0.12.0/GMLIB-LegacyRemoteCallApi-windows-x64.zip", + "asset_url": "https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/releases/download/v0.12.1/GMLIB-LegacyRemoteCallApi-windows-x64.zip", "dependencies": { - "github.com/GroupMountain/GMLIB": ">=0.12.0" + "github.com/GroupMountain/GMLIB": ">=0.12.1" }, "files": { "place": [