Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request LiteLDev#1072 from LiteLDev/develop
Browse files Browse the repository at this point in the history
Release 2.10.0
  • Loading branch information
futrime authored Feb 10, 2023
2 parents b757f5c + 143649b commit 661d946
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ jobs:
USERNAME: github-actions[bot]
shell: cmd

- name: Download LLMoney
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: |
git clone https://github.com/Tooth-Hub/LLMoney.git LLMoney-bin
cp LLMoney-bin/LLMoney.dll build/output/plugins/
shell: bash

- name: Upload LiteLoaderBDS
uses: actions/[email protected]
with:
Expand All @@ -119,6 +126,7 @@ jobs:
${{ github.workspace }}\build\output\LLPeEditor.exe
${{ github.workspace }}\build\output\LLPreLoader.dll
${{ github.workspace }}\build\output\LiteLoader.dll
${{ github.workspace }}\build\output\plugins\LLMoney.dll
${{ github.workspace }}\build\output\plugins\lib\
${{ github.workspace }}\build\output\plugins\LiteLoader\LangPack\
${{ github.workspace }}\build\output\plugins\LiteLoader\CrashLogger_Daemon.exe
Expand Down Expand Up @@ -148,8 +156,9 @@ jobs:
name: LiteLoader
path: |
${{ github.workspace }}\build\output\LiteLoader.dll
${{ github.workspace }}\build\output\plugins\lib\
${{ github.workspace }}\build\output\plugins\lib\*.dll
${{ github.workspace }}\build\output\plugins\LiteLoader\LangPack\
${{ github.workspace }}\build\output\plugins\LiteLoader\7z\
${{ github.workspace }}\build\output\plugins\LiteLoader\CrashLogger_Daemon.exe
- name: Upload ScriptEngine
Expand All @@ -160,7 +169,8 @@ jobs:
${{ github.workspace }}\build\output\plugins\LiteLoader\LiteLoader.Js.dll
${{ github.workspace }}\build\output\plugins\LiteLoader\LiteLoader.Lua.dll
${{ github.workspace }}\build\output\plugins\LiteLoader\LiteLoader.NodeJs.dll
${{ github.workspace }}\build\output\plugins\LiteLoader\7z\
${{ github.workspace }}\build\output\plugins\lib\node_modules.tar
${{ github.workspace }}\build\output\plugins\lib\package.json
- name: Upload LLParticle
uses: actions/[email protected]
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ jobs:
USERNAME: github-actions[bot]
shell: cmd

- name: Download LLMoney
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: |
git clone https://github.com/Tooth-Hub/LLMoney.git LLMoney-bin
cp LLMoney-bin/LLMoney.dll build/output/plugins/
shell: bash

- name: Upload LiteLoaderBDS
uses: actions/[email protected]
with:
Expand All @@ -145,6 +152,7 @@ jobs:
${{ github.workspace }}\build\output\LLPeEditor.exe
${{ github.workspace }}\build\output\LLPreLoader.dll
${{ github.workspace }}\build\output\LiteLoader.dll
${{ github.workspace }}\build\output\plugins\LLMoney.dll
${{ github.workspace }}\build\output\plugins\lib\
${{ github.workspace }}\build\output\plugins\LiteLoader\LangPack\
${{ github.workspace }}\build\output\plugins\LiteLoader\CrashLogger_Daemon.exe
Expand Down Expand Up @@ -174,8 +182,9 @@ jobs:
name: LiteLoader
path: |
${{ github.workspace }}\build\output\LiteLoader.dll
${{ github.workspace }}\build\output\plugins\lib\
${{ github.workspace }}\build\output\plugins\lib\*.dll
${{ github.workspace }}\build\output\plugins\LiteLoader\LangPack\
${{ github.workspace }}\build\output\plugins\LiteLoader\7z\
${{ github.workspace }}\build\output\plugins\LiteLoader\CrashLogger_Daemon.exe
- name: Upload ScriptEngine
Expand All @@ -186,7 +195,8 @@ jobs:
${{ github.workspace }}\build\output\plugins\LiteLoader\LiteLoader.Js.dll
${{ github.workspace }}\build\output\plugins\LiteLoader\LiteLoader.Lua.dll
${{ github.workspace }}\build\output\plugins\LiteLoader\LiteLoader.NodeJs.dll
${{ github.workspace }}\build\output\plugins\LiteLoader\7z\
${{ github.workspace }}\build\output\plugins\lib\node_modules.tar
${{ github.workspace }}\build\output\plugins\lib\package.json
- name: Upload LLParticle
uses: actions/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions LiteLoader/src/liteloader/BStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include "llapi/mc/ServerPlayer.hpp"
#include <Nlohmann/json.hpp>

Logger bstatsLogger("bStats");

#define BSTATS_JSON(key, val) \
if (json.find(key) != json.end()) { \
const nlohmann::json& out = json.at(key); \
Expand Down Expand Up @@ -334,6 +336,7 @@ void scheduleThread() {
void registerBStats() {
configInit();
if (bstatsSettings::enable) {
bstatsLogger.info(tr("ll.main.bstats.enabled"));
Event::ServerStartedEvent::subscribe([](const Event::ServerStartedEvent& ev) {
isOnlineAuth = Global<PropertiesSettings>->useOnlineAuthentication();
scheduleThread();
Expand Down
3 changes: 3 additions & 0 deletions LiteLoader/src/llapi/mc/PlayerAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ bool Player::setNbt(CompoundTag* nbt) {
#include "llapi/mc/Attribute.hpp"
#include "llapi/mc/HashedString.hpp"
#include "llapi/SendPacketAPI.h"
#include <llapi/mc/CommandVersion.hpp>

bool Player::refreshAttribute(class Attribute const& attribute) {
return refreshAttributes({&attribute});
Expand Down Expand Up @@ -817,9 +818,11 @@ bool Player::sendBossEventPacket(BossEvent type, string name, float percent, Bos
return true;
}


bool Player::sendCommandRequestPacket(const string& cmd) {
auto packet = MinecraftPackets::createPacket(0x4d);
dAccess<string, 48>(packet.get()) = cmd;
dAccess<int, 144>(packet.get()) = CommandVersion::CurrentVersion;
ServerNetworkHandler* handler = Global<ServerNetworkHandler> + 16;
handler->handle(*getNetworkIdentifier(), *((CommandRequestPacket*)packet.get()));
return true;
Expand Down

0 comments on commit 661d946

Please sign in to comment.