Compare commits
2 Commits
+1
-1
Submodule SDK-GMLIB updated: 37d92200bd...cecc827900
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "${pluginName}",
|
||||
"entry": "${pluginFile}",
|
||||
"version": "0.10.1",
|
||||
"version": "0.11.0",
|
||||
"author": "GroupMountain",
|
||||
"description": "Check Player's Inventory",
|
||||
"type": "native",
|
||||
|
||||
@@ -136,7 +136,7 @@ void searchPlayerForm(Player& pl) {
|
||||
{tr("form.searchPlayer.fuzzySearch"), tr("form.searchPlayer.preciseSearch")},
|
||||
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()) {
|
||||
return mainForm(pl);
|
||||
}
|
||||
@@ -173,7 +173,7 @@ void searchPlayerForm(Player& pl) {
|
||||
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"));
|
||||
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) {
|
||||
if (index == -1) {
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"format_version": 2,
|
||||
"tooth": "github.com/GroupMountain/InventoryCheck",
|
||||
"version": "0.10.1",
|
||||
"version": "0.11.0",
|
||||
"info": {
|
||||
"name": "InventoryCheck",
|
||||
"description": "Check Player's Inventory",
|
||||
@@ -14,7 +14,7 @@
|
||||
"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": {
|
||||
"github.com/GroupMountain/GMLIB": ">=0.10.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user