2 Commits

4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "${pluginName}", "name": "${pluginName}",
"entry": "${pluginFile}", "entry": "${pluginFile}",
"version": "0.10.1", "version": "0.11.0",
"author": "GroupMountain", "author": "GroupMountain",
"description": "Check Player's Inventory", "description": "Check Player's Inventory",
"type": "native", "type": "native",
+2 -2
View File
@@ -136,7 +136,7 @@ void searchPlayerForm(Player& pl) {
{tr("form.searchPlayer.fuzzySearch"), tr("form.searchPlayer.preciseSearch")}, {tr("form.searchPlayer.fuzzySearch"), tr("form.searchPlayer.preciseSearch")},
0 0
); );
fm.sendTo(pl, [](Player& pl, const ll::form::CustomFormResult& result, ll::form::FormCancelReason) { fm.sendTo(pl, [](Player& pl, ll::form::CustomFormResult const& result, ll::form::FormCancelReason) {
if (!result.has_value()) { if (!result.has_value()) {
return mainForm(pl); return mainForm(pl);
} }
@@ -173,7 +173,7 @@ void searchPlayerForm(Player& pl) {
void searchResultForm(Player& pl, std::unordered_map<mce::UUID, std::string> resultList) { void searchResultForm(Player& pl, std::unordered_map<mce::UUID, std::string> resultList) {
auto fm = ll::form::SimpleForm(tr("form.checkList.title"), tr("form.checkList.content")); auto fm = ll::form::SimpleForm(tr("form.checkList.title"), tr("form.checkList.content"));
for (auto& [uuid, name] : resultList) { for (auto& [uuid, name] : resultList) {
fm.appendButton(name, [&uuid](Player& pl) { checkPlayerForm(pl, uuid); }); fm.appendButton(name, [uuid](Player& pl) { checkPlayerForm(pl, uuid); });
} }
fm.sendTo(pl, [](Player& pl, int index, ll::form::FormCancelReason) { fm.sendTo(pl, [](Player& pl, int index, ll::form::FormCancelReason) {
if (index == -1) { if (index == -1) {
+2 -2
View File
@@ -1,7 +1,7 @@
{ {
"format_version": 2, "format_version": 2,
"tooth": "github.com/GroupMountain/InventoryCheck", "tooth": "github.com/GroupMountain/InventoryCheck",
"version": "0.10.1", "version": "0.11.0",
"info": { "info": {
"name": "InventoryCheck", "name": "InventoryCheck",
"description": "Check Player's Inventory", "description": "Check Player's Inventory",
@@ -14,7 +14,7 @@
"gmlib" "gmlib"
] ]
}, },
"asset_url": "https://github.com/GroupMountain/InventoryCheck/releases/download/v0.10.1/InventoryCheck-windows-x64.zip", "asset_url": "https://github.com/GroupMountain/InventoryCheck/releases/download/v0.11.0/InventoryCheck-windows-x64.zip",
"dependencies": { "dependencies": {
"github.com/GroupMountain/GMLIB": ">=0.10.0" "github.com/GroupMountain/GMLIB": ">=0.10.0"
}, },