mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 04:03:39 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
00db9f6602 | ||
|
acc469d6b2 | ||
|
ac7733eeee |
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#define LITELOADER_VERSION_MAJOR 408
|
#define LITELOADER_VERSION_MAJOR 408
|
||||||
#define LITELOADER_VERSION_MINOR 3
|
#define LITELOADER_VERSION_MINOR 3
|
||||||
#define LITELOADER_VERSION_REVISION 0
|
#define LITELOADER_VERSION_REVISION 1
|
||||||
#define LITELOADER_VERSION_ACTIONS 0
|
#define LITELOADER_VERSION_ACTIONS 0
|
||||||
#define LITELOADER_VERSION_STATUS LITELOADER_VERSION_DEV
|
#define LITELOADER_VERSION_STATUS LITELOADER_VERSION_DEV
|
||||||
|
|
||||||
|
@ -390,7 +390,7 @@
|
|||||||
/*0*/ virtual ~DynamicCommand();
|
/*0*/ virtual ~DynamicCommand();
|
||||||
/*1*/ virtual void execute(class CommandOrigin const& origin, class CommandOutput& output) const;
|
/*1*/ virtual void execute(class CommandOrigin const& origin, class CommandOutput& output) const;
|
||||||
|
|
||||||
LIAPI static std::unique_ptr<class DynamicCommandInstance> createCommand(std::string const& name, std::string const& description, CommandPermissionLevel permission = CommandPermissionLevel::GameMasters, CommandFlag flag1 = {(CommandFlagValue)0x80}, CommandFlag flag2 = {(CommandFlagValue)0}, HMODULE handle = GetCurrentModule());
|
LIAPI static std::unique_ptr<class DynamicCommandInstance> createCommand(std::string const& name, std::string const& description, CommandPermissionLevel permission = CommandPermissionLevel::GameMasters, CommandFlag flag1 = {(CommandFlagValue)4}, CommandFlag flag2 = {(CommandFlagValue)0}, HMODULE handle = GetCurrentModule());
|
||||||
LIAPI static std::unique_ptr<class DynamicCommandInstance> createCommand(
|
LIAPI static std::unique_ptr<class DynamicCommandInstance> createCommand(
|
||||||
std::string const& name,
|
std::string const& name,
|
||||||
std::string const& description,
|
std::string const& description,
|
||||||
@ -399,7 +399,7 @@
|
|||||||
std::vector<std::vector<std::string>>&& overloads,
|
std::vector<std::vector<std::string>>&& overloads,
|
||||||
CallBackFn callback,
|
CallBackFn callback,
|
||||||
CommandPermissionLevel permission = CommandPermissionLevel::GameMasters,
|
CommandPermissionLevel permission = CommandPermissionLevel::GameMasters,
|
||||||
CommandFlag flag1 = {(CommandFlagValue)0x80},
|
CommandFlag flag1 = {(CommandFlagValue)0x40},
|
||||||
CommandFlag flag2 = {(CommandFlagValue)0},
|
CommandFlag flag2 = {(CommandFlagValue)0},
|
||||||
HMODULE handle = GetCurrentModule());
|
HMODULE handle = GetCurrentModule());
|
||||||
|
|
||||||
@ -412,7 +412,7 @@
|
|||||||
std::vector<std::vector<std::string>>&& overloads,
|
std::vector<std::vector<std::string>>&& overloads,
|
||||||
CallBackFn callback,
|
CallBackFn callback,
|
||||||
CommandPermissionLevel permission = CommandPermissionLevel::GameMasters,
|
CommandPermissionLevel permission = CommandPermissionLevel::GameMasters,
|
||||||
CommandFlag flag1 = {(CommandFlagValue)0x80},
|
CommandFlag flag1 = {(CommandFlagValue)0x40},
|
||||||
CommandFlag flag2 = {(CommandFlagValue)0},
|
CommandFlag flag2 = {(CommandFlagValue)0},
|
||||||
HMODULE handle = GetCurrentModule()) {
|
HMODULE handle = GetCurrentModule()) {
|
||||||
return setup(createCommand(name, description, std::move(enums), std::move(params), std::move(overloads), std::move(callback), permission, flag1, flag2, handle));
|
return setup(createCommand(name, description, std::move(enums), std::move(params), std::move(overloads), std::move(callback), permission, flag1, flag2, handle));
|
||||||
@ -483,7 +483,7 @@
|
|||||||
|
|
||||||
friend class DynamicCommand;
|
friend class DynamicCommand;
|
||||||
|
|
||||||
LIAPI DynamicCommandInstance(std::string const& name, std::string const& description, CommandPermissionLevel permission = CommandPermissionLevel::GameMasters, CommandFlag flag = {(CommandFlagValue)0x80}, HMODULE handle = GetCurrentModule());
|
LIAPI DynamicCommandInstance(std::string const& name, std::string const& description, CommandPermissionLevel permission = CommandPermissionLevel::GameMasters, CommandFlag flag = {(CommandFlagValue)0x40}, HMODULE handle = GetCurrentModule());
|
||||||
|
|
||||||
LIAPI bool setBuilder(DynamicCommand::BuilderFn builder);
|
LIAPI bool setBuilder(DynamicCommand::BuilderFn builder);
|
||||||
LIAPI DynamicCommand::BuilderFn initCommandBuilder();
|
LIAPI DynamicCommand::BuilderFn initCommandBuilder();
|
||||||
|
@ -514,7 +514,7 @@ public:
|
|||||||
|
|
||||||
static void setup(CommandRegistry* registry) {
|
static void setup(CommandRegistry* registry) {
|
||||||
registry->registerCommand("addons", "LiteLoaderBDS Addons Helper (Restart required after addon changes)",
|
registry->registerCommand("addons", "LiteLoaderBDS Addons Helper (Restart required after addon changes)",
|
||||||
CommandPermissionLevel::GameMasters, {(CommandFlagValue)0}, {(CommandFlagValue)0x80});
|
CommandPermissionLevel::GameMasters, {(CommandFlagValue)0}, {(CommandFlagValue)0x40});
|
||||||
|
|
||||||
vector<string> addonsList;
|
vector<string> addonsList;
|
||||||
for (auto& addon : addons)
|
for (auto& addon : addons)
|
||||||
|
@ -118,7 +118,7 @@ public:
|
|||||||
static void setup(CommandRegistry* registry) {
|
static void setup(CommandRegistry* registry) {
|
||||||
registry->registerCommand(
|
registry->registerCommand(
|
||||||
"tpdim", "Teleport to Dimension", CommandPermissionLevel::GameMasters,
|
"tpdim", "Teleport to Dimension", CommandPermissionLevel::GameMasters,
|
||||||
{(CommandFlagValue)0}, {(CommandFlagValue)0x80});
|
{(CommandFlagValue)0}, {(CommandFlagValue)0x40});
|
||||||
registry->addEnum<DimensionType>("DimensionType",
|
registry->addEnum<DimensionType>("DimensionType",
|
||||||
{
|
{
|
||||||
{"overworld", DimensionType::OverWorld},
|
{"overworld", DimensionType::OverWorld},
|
||||||
@ -312,7 +312,7 @@ public:
|
|||||||
static void setup(CommandRegistry* registry) {
|
static void setup(CommandRegistry* registry) {
|
||||||
// Register Cmd
|
// Register Cmd
|
||||||
registry->registerCommand("ll", "LiteLoaderBDS plugin operations",
|
registry->registerCommand("ll", "LiteLoaderBDS plugin operations",
|
||||||
CommandPermissionLevel::Console, {(CommandFlagValue)0}, {(CommandFlagValue)0x80});
|
CommandPermissionLevel::Console, {(CommandFlagValue)0}, {(CommandFlagValue)0x40});
|
||||||
|
|
||||||
// Register softenum
|
// Register softenum
|
||||||
vector<string> pluginList;
|
vector<string> pluginList;
|
||||||
@ -372,7 +372,7 @@ public:
|
|||||||
|
|
||||||
static void setup(CommandRegistry* registry) {
|
static void setup(CommandRegistry* registry) {
|
||||||
registry->registerCommand("version", "Get the version of this server",
|
registry->registerCommand("version", "Get the version of this server",
|
||||||
CommandPermissionLevel::GameMasters, {(CommandFlagValue)0}, {(CommandFlagValue)0x80});
|
CommandPermissionLevel::GameMasters, {(CommandFlagValue)0}, {(CommandFlagValue)0x40});
|
||||||
registry->registerOverload<VersionCommand>("version");
|
registry->registerOverload<VersionCommand>("version");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,7 @@ bool isUnlockCmdEnabled = true;
|
|||||||
void LogCommandRegistration(std::string const& name, char const* description, enum CommandPermissionLevel perm, short flag1, short flag2);
|
void LogCommandRegistration(std::string const& name, char const* description, enum CommandPermissionLevel perm, short flag1, short flag2);
|
||||||
|
|
||||||
TInstanceHook(void, "?registerCommand@CommandRegistry@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBDW4CommandPermissionLevel@@UCommandFlag@@3@Z",
|
TInstanceHook(void, "?registerCommand@CommandRegistry@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBDW4CommandPermissionLevel@@UCommandFlag@@3@Z",
|
||||||
CommandRegistry, std::string const& name, char const* description, enum CommandPermissionLevel perm, short flag1, short flag2) {
|
CommandRegistry, std::string const& name, char const* description, enum CommandPermissionLevel perm, unsigned char flag1, unsigned char flag2) {
|
||||||
// For #643
|
// For #643
|
||||||
if (name.find(' ') == std::string::npos) { // If no space inside
|
if (name.find(' ') == std::string::npos) { // If no space inside
|
||||||
// Check whether command is already exists before registering
|
// Check whether command is already exists before registering
|
||||||
@ -20,7 +20,7 @@ TInstanceHook(void, "?registerCommand@CommandRegistry@@QEAAXAEBV?$basic_string@D
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ll::globalConfig.enableUnlockCmd) {
|
if (ll::globalConfig.enableUnlockCmd) {
|
||||||
flag1 |= 0x80;
|
flag2 |= 0x40;
|
||||||
}
|
}
|
||||||
if (ll::globalConfig.debugMode) {
|
if (ll::globalConfig.debugMode) {
|
||||||
LogCommandRegistration(name, description, perm, flag1, flag2);
|
LogCommandRegistration(name, description, perm, flag1, flag2);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include <llapi/HookAPI.h>
|
#include <llapi/HookAPI.h>
|
||||||
|
|
||||||
ItemStack* ItemActor::getItemStack() {
|
ItemStack* ItemActor::getItemStack() {
|
||||||
return dAccess<ItemStack*>(this, ll::offset::ITEMACTORAPI_getItemStack); // IDA Player::take Line127
|
return &dAccess<ItemStack>(this, ll::offset::ITEMACTORAPI_getItemStack); // IDA Player::take Line127
|
||||||
}
|
}
|
||||||
|
|
||||||
int ItemActor::getDespawnTime() {
|
int ItemActor::getDespawnTime() {
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 15e2c6d7149054f36f103de0a86d58e4548a506f
|
Subproject commit 23548dcf6a1761c0fab3268e733ac84b2b7ccee6
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
|
v408.3.x 版本变更内容
|
||||||
## Added
|
## Added
|
||||||
|
|
||||||
* 添加`ActorBlockSyncMessage`结构
|
* 添加`ActorBlockSyncMessage`结构
|
||||||
@ -30,6 +31,10 @@
|
|||||||
* 修复`SetDisplayObjectivePacket`类
|
* 修复`SetDisplayObjectivePacket`类
|
||||||
* 修正`HitResult::getEntity`函数
|
* 修正`HitResult::getEntity`函数
|
||||||
|
|
||||||
|
v408.3.1
|
||||||
|
|
||||||
|
* 修复指令在无作弊情况下不能使用
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
|
|
||||||
* 已发布到Tooth库,可使用[Lip](https://github.com/LiteLDev/Lip)或者[LipUI](https://github.com/LiteLDev/LipUI)进行安装
|
* 已发布到Tooth库,可使用[Lip](https://github.com/LiteLDev/Lip)或者[LipUI](https://github.com/LiteLDev/LipUI)进行安装
|
||||||
|
@ -19,7 +19,7 @@ using namespace std;
|
|||||||
|
|
||||||
bool RegisterCmd(const string& cmd, const string& describe, int cmdLevel) {
|
bool RegisterCmd(const string& cmd, const string& describe, int cmdLevel) {
|
||||||
::Global<CommandRegistry>->registerCommand(cmd, describe.c_str(), (CommandPermissionLevel)cmdLevel, {(CommandFlagValue)0},
|
::Global<CommandRegistry>->registerCommand(cmd, describe.c_str(), (CommandPermissionLevel)cmdLevel, {(CommandFlagValue)0},
|
||||||
{(CommandFlagValue)0x80});
|
{(CommandFlagValue)0x40});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,6 @@ ClassDefine<PlayerClass> PlayerClassBuilder =
|
|||||||
.instanceProperty("isAdventure", &PlayerClass::isAdventure)
|
.instanceProperty("isAdventure", &PlayerClass::isAdventure)
|
||||||
.instanceProperty("isGliding", &PlayerClass::isGliding)
|
.instanceProperty("isGliding", &PlayerClass::isGliding)
|
||||||
.instanceProperty("isSurvival", &PlayerClass::isSurvival)
|
.instanceProperty("isSurvival", &PlayerClass::isSurvival)
|
||||||
// .instanceProperty("isSpectator", &PlayerClass::isSpectator)
|
|
||||||
.instanceProperty("isRiding", &PlayerClass::isRiding)
|
.instanceProperty("isRiding", &PlayerClass::isRiding)
|
||||||
.instanceProperty("isDancing", &PlayerClass::isDancing)
|
.instanceProperty("isDancing", &PlayerClass::isDancing)
|
||||||
.instanceProperty("isCreative", &PlayerClass::isCreative)
|
.instanceProperty("isCreative", &PlayerClass::isCreative)
|
||||||
|
Loading…
Reference in New Issue
Block a user