Yes, without this task I have no lags
I need to send large text packets to each player each second(up to 300 symbols), as I know it's taking much time to encode packets so I want to...
I need to send packets with large strings which make lags, can I do it async?
Use nbt instead of slow comparing large strings. like this
$item->getNamedTag()->setByte("used", 1 or 0)
It works, thx. But anyway I want to know why PlayerSkinPacket crashes client
I don`t want to show npc names in players list
checked with Skin::isValid(). How should I check if alpha is valid?
When I`m trying to set skin of my NPC client crashes, but NPC spawns correctly, so without changing skin everything is fine. I have no errors in...
How do u create instance of compoundtag?
hm, can u send the code. And I think if changing knockback at event dont wotk, it may be a bug. I`ll try it myself
I want to help, but I can't if I don't know enough
Create instance of pocketmine\entity\Skin
with your geometry,new Skin($skinId,$skinData,$capeData,$geometryName, file_get_contents("geometry.json"));
How do u set knockback? Directly to a player or in event object?
U want money for your work or what? As for me, I dont see the point of doing something for free if I dont work on myself
Or u can use EntityDamageEvent
function dm(EntityDamageEvent $e)
if ($e instanceof EntityDamageByEntityEvent)...
Add $this->plugin=$plugin to u`r anonymous class constructor, and add $plugin=$this->plugin to onRun function
just replace $Server->getScheduler() with $pluginMainClass->getScheduler().
For example, there u need replace...
Separate names with a comma.