Skip to content

Commit

Permalink
chore: Adapted for Levilamina 0.13.4
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Jul 24, 2024
1 parent 0985fe3 commit 92d2896
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.1] - 2024-07-24

### Changed

- 适配 LeviLamina 0.13.4

## [0.6.0] - 2024-07-23

### Added:
Expand Down
1 change: 0 additions & 1 deletion src/plotcraft/command/Command.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <ll/api/command/CommandHandle.h>
#include <ll/api/command/CommandRegistrar.h>
#include <ll/api/i18n/I18n.h>
#include <ll/api/plugin/NativePlugin.h>
#include <ll/api/service/Bedrock.h>
#include <ll/api/service/PlayerInfo.h>
#include <ll/api/service/Service.h>
Expand Down
5 changes: 2 additions & 3 deletions src/plugin/MyPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#include "ll/api/event/EventBus.h"
#include "ll/api/event/server/ServerStartedEvent.h"
#include "ll/api/i18n/I18n.h"
#include "ll/api/plugin/NativePlugin.h"
#include "ll/api/plugin/RegisterHelper.h"
#include "ll/api/mod/RegisterHelper.h"
#include "ll/api/service/Bedrock.h"
#include "mc/server/ServerLevel.h"
#include "mc/server/commands/CommandContext.h"
Expand Down Expand Up @@ -120,4 +119,4 @@ bool MyPlugin::disable() {

} // namespace my_plugin

LL_REGISTER_PLUGIN(my_plugin::MyPlugin, my_plugin::instance);
LL_REGISTER_MOD(my_plugin::MyPlugin, my_plugin::instance);
8 changes: 4 additions & 4 deletions src/plugin/MyPlugin.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "ll/api/plugin/NativePlugin.h"
#include "ll/api/mod/NativeMod.h"

namespace my_plugin {

Expand All @@ -9,9 +9,9 @@ class MyPlugin {
public:
static MyPlugin& getInstance();

MyPlugin(ll::plugin::NativePlugin& self) : mSelf(self) {}
MyPlugin(ll::mod::NativeMod& self) : mSelf(self) {}

[[nodiscard]] ll::plugin::NativePlugin& getSelf() const { return mSelf; }
[[nodiscard]] ll::mod::NativeMod& getSelf() const { return mSelf; }

/// @return True if the plugin is loaded successfully.
bool load();
Expand All @@ -27,7 +27,7 @@ class MyPlugin {
// bool unload();

private:
ll::plugin::NativePlugin& mSelf;
ll::mod::NativeMod& mSelf;
};

} // namespace my_plugin
12 changes: 6 additions & 6 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "github.com/engsr6982/PlotCraft",
"version": "0.6.0",
"version": "0.6.1",
"info": {
"name": "PlotCraft - 地皮插件",
"description": "地皮世界|地皮购买|地皮出售|地皮共享|地皮评论",
Expand All @@ -13,12 +13,12 @@
"plotcraft"
]
},
"asset_url": "https://github.com/engsr6982/PlotCraft/releases/download/v0.6.0/PlotCraft-windows-x64.zip",
"asset_url": "https://github.com/engsr6982/PlotCraft/releases/download/v0.6.1/PlotCraft-windows-x64.zip",
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "0.13.x",
"github.com/LiteLDev/MoreDimensions": "0.4.x",
"github.com/LiteLDev/LegacyMoney": "0.8.x",
"github.com/LiteLDev/LegacyRemoteCall": "0.8.x"
"github.com/LiteLDev/LeviLamina": "0.13.4",
"github.com/LiteLDev/MoreDimensions": "0.4.1",
"github.com/LiteLDev/LegacyMoney": "0.8.2",
"github.com/LiteLDev/LegacyRemoteCall": "0.8.2"
},
"files": {
"place": [
Expand Down
8 changes: 4 additions & 4 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
-- add_requires("levilamina develop") to use develop version
-- please note that you should add bdslibrary yourself if using dev version
add_requires(
"levilamina 0.13.3",
"levilamina 0.13.4",
"sqlitecpp 3.2.1",
"legacymoney 0.8.1"
"legacymoney 0.8.2"
)

if not has_config("vs_runtime") then
set_runtimes("MD")
end

if get_config("overworld") == false then
add_requires("more-dimensions 0.4.0")
add_requires("more-dimensions 0.4.1")
end

if get_config("remote") == true then
add_requires("legacyremotecall 0.8.1")
add_requires("legacyremotecall 0.8.2")
end

option("gen") -- Generator
Expand Down

0 comments on commit 92d2896

Please sign in to comment.