Compare commits
2 Commits
+1
-1
Submodule SDK-GMLIB updated: cda5bfbf85...37d92200bd
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "${pluginName}",
|
"name": "${pluginName}",
|
||||||
"entry": "${pluginFile}",
|
"entry": "${pluginFile}",
|
||||||
"version": "0.9.3",
|
"version": "0.10.0",
|
||||||
"author": "GroupMountain",
|
"author": "GroupMountain",
|
||||||
"description": "Check Player's Inventory",
|
"description": "Check Player's Inventory",
|
||||||
"type": "native",
|
"type": "native",
|
||||||
|
|||||||
@@ -24,6 +24,14 @@ auto enable(ll::plugin::NativePlugin& /*self*/) -> bool {
|
|||||||
auto load(ll::plugin::NativePlugin& self) -> bool {
|
auto load(ll::plugin::NativePlugin& self) -> bool {
|
||||||
selfPluginInstance = std::make_unique<std::reference_wrapper<ll::plugin::NativePlugin>>(self);
|
selfPluginInstance = std::make_unique<std::reference_wrapper<ll::plugin::NativePlugin>>(self);
|
||||||
initPlugin();
|
initPlugin();
|
||||||
|
if (GMLIB::Version::getProtocolVersion() != TARGET_PROTOCOL) {
|
||||||
|
logger.error(tr("error.protocolMismatch.info"));
|
||||||
|
logger.error(
|
||||||
|
tr("error.protocolMismatch.version",
|
||||||
|
{std::to_string(TARGET_PROTOCOL), std::to_string(GMLIB::Version::getProtocolVersion())})
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
initPlayerDataCache();
|
initPlayerDataCache();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <include_all.h>
|
#include <include_all.h>
|
||||||
|
|
||||||
#define PLUGIN_NAME "InventoryCheck"
|
#define PLUGIN_NAME "InventoryCheck"
|
||||||
|
#define TARGET_PROTOCOL 662
|
||||||
|
|
||||||
extern ll::Logger logger;
|
extern ll::Logger logger;
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ std::string defaultLanguage_en_US = R"(
|
|||||||
checkAll.empty=You've played the entire archive alone, and you're still playing here to check the bag? \nWhy don't you go and recruit people?
|
checkAll.empty=You've played the entire archive alone, and you're still playing here to check the bag? \nWhy don't you go and recruit people?
|
||||||
resumeInventory.success=Your backpack has been resumed!
|
resumeInventory.success=Your backpack has been resumed!
|
||||||
resumeInventory.failed=Unable to resume your backpack, no data was found on your backpack!
|
resumeInventory.failed=Unable to resume your backpack, no data was found on your backpack!
|
||||||
|
error.protocolMismatch.info=You are running on an unsupport protocol version! This may result in crash!
|
||||||
|
error.protocolMismatch.version=Support protocol %1$s, current protocol %2$s.
|
||||||
)";
|
)";
|
||||||
|
|
||||||
std::string defaultLanguage_zh_CN = R"(
|
std::string defaultLanguage_zh_CN = R"(
|
||||||
@@ -99,4 +101,6 @@ std::string defaultLanguage_zh_CN = R"(
|
|||||||
checkAll.empty=整个存档就你一个人玩过,还在这玩查包呢?\n还不快去招人?
|
checkAll.empty=整个存档就你一个人玩过,还在这玩查包呢?\n还不快去招人?
|
||||||
resumeInventory.success=已成功复原你的背包!
|
resumeInventory.success=已成功复原你的背包!
|
||||||
resumeInventory.failed=无法复原你的背包,没有找到你的背包数据!
|
resumeInventory.failed=无法复原你的背包,没有找到你的背包数据!
|
||||||
|
error.protocolMismatch.info=此插件正在不兼容的版本协议上运行!这可能造成服务器崩溃!
|
||||||
|
error.protocolMismatch.version=此插件支持版本协议 %1$s,服务器版本协议 %2$s。
|
||||||
)";
|
)";
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"format_version": 2,
|
"format_version": 2,
|
||||||
"tooth": "github.com/GroupMountain/InventoryCheck",
|
"tooth": "github.com/GroupMountain/InventoryCheck",
|
||||||
"version": "0.9.3",
|
"version": "0.10.0",
|
||||||
"info": {
|
"info": {
|
||||||
"name": "InventoryCheck",
|
"name": "InventoryCheck",
|
||||||
"description": "Check Player's Inventory",
|
"description": "Check Player's Inventory",
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
"gmlib"
|
"gmlib"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"asset_url": "https://github.com/GroupMountain/InventoryCheck/releases/download/v0.9.3/InventoryCheck-windows-x64.zip",
|
"asset_url": "https://github.com/GroupMountain/InventoryCheck/releases/download/v0.10.0/InventoryCheck-windows-x64.zip",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"github.com/GroupMountain/GMLIB": ">=0.9.8"
|
"github.com/GroupMountain/GMLIB": ">=0.10.x"
|
||||||
},
|
},
|
||||||
"files": {
|
"files": {
|
||||||
"place": [
|
"place": [
|
||||||
|
|||||||
Reference in New Issue
Block a user