Just replace onInventoryClose with setInventoryCloseListener like @GamakCZ said
I've just updated the InvMenu wiki :oops:
Which plugin are you using?
y=256 is one block outside the world, replace $count's value with (Level::Y_MAX - 1) or you could do something like
$y = Level::Y_MAX;
Always under-promise and over-deliver.
I ran into this issue as well. Seems like the client caches the geometry, no idea why :|
For now, I'm changing the geometry name everytime I...
Yeah, that bug was fixed a few hours ago. Update your pocketmine phar and that should solve it.
invert the if case.
Right below it, there's an example on how to do it.[ATTACH]
Sadly nothing can be done about this. The client sends no packets to the server at the time they change their UI profile, so it doesn't seem like...
Equate it to 100
if(mt_rand(percentage, 100) === 100)
But this wont work with floating percentages as you can already tell.
Yes, reading/writing directly from/to disk is a heavy process and doing it that frequently is inefficient.
Think of it like saving the world...
This wouldn't work as your expecting it to even if you figure out how you can check if two entities are in the same chunk.
You'll need to...
I guess using InventoryTransactionEvent for this case is a low-level move. It works but there's a lot you'd need to do to get to what...
Use $chunk->setBlock(int & 0x0f, int, int & 0x0f, ...);
Separate names with a comma.