File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 35
35
#include < llapi/mc/SynchedActorDataEntityWrapper.hpp>
36
36
#include < llapi/PlayerInfoAPI.h>
37
37
#include < llapi/mc/Biome.hpp>
38
+ #include < llapi/mc/UpdateAbilitiesPacket.hpp>
38
39
#include " main/SafeGuardRecord.h"
39
40
#include < string>
40
41
#include < vector>
@@ -1267,6 +1268,8 @@ Local<Value> PlayerClass::setPermLevel(const Arguments& args) {
1267
1268
RecordOperation (ENGINE_OWN_DATA ()->pluginName , " Set Permission Level" ,
1268
1269
fmt::format (" Set Player {} Permission Level as {}." , player->getRealName (), newPerm));
1269
1270
player->setPermissions ((CommandPermissionLevel)newPerm);
1271
+ UpdateAbilitiesPacket pkt (player->getUniqueID (), player->getAbilities ());
1272
+ player->sendNetworkPacket (pkt);
1270
1273
res = true ;
1271
1274
}
1272
1275
return Boolean::newBoolean (res);
You can’t perform that action at this time.
0 commit comments