Skip to content

Commit

Permalink
adapt: adapt GMLIB 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KobeBryant114514 committed Feb 15, 2024
1 parent 889233c commit 6fe7ebd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/Initialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ void initConfigFile() {
std::string langPath = "./plugins/GMBlacklist/language/";
std::string languageCode = Config->getValue<std::string>({"language"}, "en_US");
Language = new GMLIB::Files::I18n::JsonI18n(langPath);
Language->loadLanguage("en_US", defaultLanguage_en_US);
Language->loadLanguage("zh_CN", defaultLanguage_zh_CN);
Language->updateOrCreateLanguage("en_US", defaultLanguage_en_US);
Language->updateOrCreateLanguage("zh_CN", defaultLanguage_zh_CN);
Language->loadAllLanguages();
Language->chooseLanguage(languageCode);
commandPermissionLevel = Config->getValue<int>({"CommandPermissionLevel"}, 4);
if (commandPermissionLevel < 0 || commandPermissionLevel > 4) {
Expand Down
11 changes: 7 additions & 4 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{
"format_version": 2,
"tooth": "github.com/GroupMountain/GMBlacklist",
"version": "0.7.0",
"version": "0.8.0",
"info": {
"name": "GMBlacklist",
"description": "Group Mountain Blacklist Plugin",
"author": "Tsubasa6848",
"source": "github.com/GroupMountain/GMBlacklist",
"description": "Blacklist Plugin on Bedrock Dedicated Server",
"author": "GroupMountain Team",
"tags": [
"LeviLamina",
"GMLIB",
"GMBlacklist"
]
},
"asset_url": "https://github.com/GroupMountain/GMBlacklist/releases/download/v0.8.0/GMBlacklist-windows-x64.zip",
"dependencies": {
"github.com/GroupMountain/GMLIB": ">=0.8.0"
},
"files": {
"place": [
{
Expand Down

0 comments on commit 6fe7ebd

Please sign in to comment.