foreach $block->getAllSides() and setblock at those position as air
You forgot $p = $ev->getPlayer();
Afaik worlds newer than Java 1.12 cannot be loaded
There is no such field anymore, simply remove $pk->teleported = false;
You can kinda fix it yourself:
$entity->newPosition = new Location($vec3["X"], $vec3["Y"],...
There is something wrong with your dump, i tested this code with my dump and it works
$encodedData = str_replace(PHP_EOL,"",$dump);
Hmm maybe dont cancel if it is sending to you, only cancel if sending to other players
Cancel DataPacketSendEvent of MobEquipmentPacket from that player
Is the code run? Verify with var_dump
Remove this line
Simply listen to BlockBreakEvent
Get drops from $event->getDrops() and when you are done removing $event->setDrops($itemArray)
Then at least post the full code?
If you want to fix it yourself, the problem is something is causing KitsManager::$kits to have null
$kit is null, link to plugin?
$this->getScheduler()->scheduleDelayedTask(new SendCommandTask(), 400);
Change PluginTask to Task
Change $this->getServer() inside onRun to...
Did you forget the use statement for Human?
It prevents the entity from having motion that is too small
For very simple moving you might want to check out https://github.com/diamond-gold/MiniBosses/blob/master/src/MiniBosses/Boss.php#L238
"website" in plugin.yml must be a string
Separate names with a comma.