3 Commits

5 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "${pluginName}", "name": "${pluginName}",
"entry": "${pluginFile}", "entry": "${pluginFile}",
"type": "native", "type": "native",
"version": "0.12.0", "version": "0.12.2",
"author": "GroupMountain", "author": "GroupMountain",
"description": "Clean Entities", "description": "Clean Entities",
"dependencies": [ "dependencies": [
+6 -2
View File
@@ -2,8 +2,12 @@
namespace Helper { namespace Helper {
void broadcastMessage(std::string_view msg) { GMLIB_Level::broadcast(I18nAPI::get("cleaner.info.prefix") + std::string(msg)); } void broadcastMessage(std::string_view msg) {
GMLIB_Level::getInstance()->broadcast(I18nAPI::get("cleaner.info.prefix") + std::string(msg));
}
void broadcastToast(std::string_view msg) { GMLIB_Level::broadcastToast(I18nAPI::get("cleaner.info.prefix"), msg); } void broadcastToast(std::string_view msg) {
GMLIB_Level::getInstance()->broadcastToast(I18nAPI::get("cleaner.info.prefix"), msg);
}
} // namespace Helper } // namespace Helper
+5 -5
View File
@@ -1,7 +1,7 @@
#pragma once #pragma once
#include "Global.h" #include "Global.h"
std::string en_US = R"({ std::string en_US = R"(
cleaner.info.prefix=§e§l[Cleaner] §r cleaner.info.prefix=§e§l[Cleaner] §r
cleaner.command.cleaner=Cleaner admin command. cleaner.command.cleaner=Cleaner admin command.
cleaner.command.despawnSuccess=Successfully despawned %1$s entities. cleaner.command.despawnSuccess=Successfully despawned %1$s entities.
@@ -35,9 +35,9 @@ std::string en_US = R"({
cleaner.vote.title=Vote Cleaning cleaner.vote.title=Vote Cleaning
cleaner.vote.voted=You have been voted! cleaner.vote.voted=You have been voted!
cleaner.vote.voteMessage=%1$s lunched a clean vote. If you agree cleaning entities but did not received a form, please type command /voteclean to vote. cleaner.vote.voteMessage=%1$s lunched a clean vote. If you agree cleaning entities but did not received a form, please type command /voteclean to vote.
})"; )";
std::string zh_CN = R"({ std::string zh_CN = R"(
cleaner.info.prefix=§e§l[Cleaner] §r cleaner.info.prefix=§e§l[Cleaner] §r
cleaner.command.cleaner=Cleaner管理员命令 cleaner.command.cleaner=Cleaner管理员命令
cleaner.command.despawnSuccess= %1$s cleaner.command.despawnSuccess= %1$s
@@ -47,7 +47,7 @@ std::string zh_CN = R"({
cleaner.command.mspt.output=MSPT %1$s cleaner.command.mspt.output=MSPT %1$s
cleaner.command.clean.output= cleaner.command.clean.output=
cleaner.command.voteclean= cleaner.command.voteclean=
cleaner.command.despawntime" : " %1$s cleaner.command.despawntime= %1$s
cleaner.output.count1= %1$s cleaner.output.count1= %1$s
cleaner.output.count2= %1$s cleaner.output.count2= %1$s
cleaner.output.finish= %1$s cleaner.output.finish= %1$s
@@ -71,4 +71,4 @@ std::string zh_CN = R"({
cleaner.vote.title= cleaner.vote.title=
cleaner.vote.voted= cleaner.vote.voted=
cleaner.vote.voteMessage=%1$s /voteclean cleaner.vote.voteMessage=%1$s /voteclean
})"; )";
+3 -3
View File
@@ -1,7 +1,7 @@
{ {
"format_version": 2, "format_version": 2,
"tooth": "github.com/GroupMountain/Cleaner", "tooth": "github.com/GroupMountain/Cleaner",
"version": "0.12.0", "version": "0.12.2",
"info": { "info": {
"name": "Cleaner", "name": "Cleaner",
"description": "A Powerful Entities Cleaning up Plugin for BDS", "description": "A Powerful Entities Cleaning up Plugin for BDS",
@@ -13,9 +13,9 @@
"gmlib" "gmlib"
] ]
}, },
"asset_url": "https://github.com/GroupMountain/Cleaner/releases/download/v0.12.0/Cleaner-windows-x64.zip", "asset_url": "https://github.com/GroupMountain/Cleaner/releases/download/v0.12.2/Cleaner-windows-x64.zip",
"dependencies": { "dependencies": {
"github.com/GroupMountain/GMLIB": ">=0.12.1" "github.com/GroupMountain/GMLIB": ">=0.12.4"
}, },
"files": { "files": {
"place": [ "place": [