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{...
Are you sure you are extending the right class? This structure seems more like a Task than a plugin (you are extending PluginBase)
Yes you can change it however you want, but whatever chunks that are already generated will not reflect the changes. It will only affect new chunks.
Its a bug with formapi that have already been fixed https://github.com/jojoe77777/FormAPI/commit/b34e519dd0fa6777a46583b1addf851ceaa2c723 Update...
Take a look at Item::jsonSerialize/Item::jsonDeserialize or Item::nbtSerialize/Item::nbtDeserialize depending on how you are saving the data
Then probably use with https://poggit.pmmp.io/p/sudo and let the slapper execute the sudo command
Separate names with a comma.