-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player.setPermLevel does not seem to be synchronized with the client #1194
Comments
Here is a video of the actual reproduction. issue.mp4 |
After testing, this problem also occurs when calling Player::setPermissions directly from a plugin written with LL-CPP-SDK void PluginInit()
{
Event::PlayerJoinEvent::subscribe([](const Event::PlayerJoinEvent &event)
{
Player *player = event.mPlayer;
player->setPermissions((CommandPermissionLevel)1);
UpdateAbilitiesPacket pkt(player->getUniqueID(), player->getAbilities());
player->sendNetworkPacket(pkt);
return true;
});
} |
Sorry, how do I send UpdateAbilitiesPacket in JavaScript? |
Until LiteLoaderBDS fixes the problem, you can use this method to solve the problem for now. |
Sorry for repeating myself. |
I looked at the logic of bds writing to the UpdateAbilitiesPacket binary stream through disassembly and unfortunately there are some bds internal function calls involved which are relatively tricky to implement in llse. So, please be patient until the issue is fixed |
Thank you very much. |
Fixed in 74528cb |
Exceptions module
ScriptEngine
Operating System
Windows 11
LiteLoader version
2.12.3
BDS version
1.19.73
What happened?
When I use Player.setPermLevel to manipulate the PermLevel of a player to 1, it is treated as an operator (
/give
and/kill
can be executed), but the following phenomenon occurs.It is inconvenient that the suggestions are not displayed, and it is strange that you are displayed as a member even though you are an operator.
Is there any way to make the suggestions show up and show me as an operator in the menu?
Translated with www.DeepL.com/Translator (free version)
Steps to reproduce?
/give @s diamond
is not executable/sudo @s
and set permLevel to 1./give @s diamond
is executable, but does not show suggestions, and does not appear as an operatorRelevant log output
Plugin list
The text was updated successfully, but these errors were encountered: