Take a look at any NPC plugin. You can also take a look at https://github.com/diamond-gold/MiniBosses/
https://crafatar.com/
Very likely its AntiSpamPro since both crashes were directly after loading it
The message will not be sent to anyone who does not have the permission. That will happen if not configured correctly
Simply use a permission plugin and deny the permission pocketmine.broadcast.admin to whoever you want to hide that from
The random tick is done here https://github.com/pmmp/PocketMine-MP/blob/stable/src/pocketmine/level/Level.php#L1125 You can disable ticking done...
If its just for a game where block cannot be broken it would be better to add item on inventory open? Then save the coords of the holder and clear...
dropItem will return the item entity, this will do $entity=$dusur->dropItem($blok,Item::get(131)); $entity->setNameTag("Hi!");...
Hmm it seems you have to cancel EntityTeleportEvent, or override Enderpearl's onHit() to prevent the teleport. Since teleporting resets the motion...
To set the motion to go towards the pearl you can do $owner->setMotion($projectile->subtract($owner));
You can simulate a right click using Item::OnClickAir() on player's hand item. This will not call the interact event, you can call it yourself if...
Whats with the text color :facepalm: $pk->item is no longer Item and is now ItemStackWrapper
You can use $packet->item->getItemStack() Though you should really use PlayerItemHeldEvent instead of that, you wont need to care about changes in...
If you are saving into a config then I would suggest using Item::jsonSerialize/Item::jsonDeserialize If you want to save directly into player.dat,...
Im not sure where you get those code from, but I would imagine it to be used in this way, you get the idea class Main extends PluginBase{...
Separate names with a comma.