Yep, Muqsits method is good save items to serialize file then add to player
Other players see it
https://forums.pmmp.io/search/1612470/?q=create+task&o=date&c[node]=31 create task then you can put player to array and unset time for players in...
http://php.net/manual/en/control-structures.while.php
He know if u type /command the usage that it give you
while function
Task?
I reinstalled server and it is working.. :D
Look it i changed player dimension to nether then back to overworld and look what is it doing [SPOILER] Here is code $pk2 = new...
No, dont add to the same slot
Yes im using pocketmine not forks Code public function onDrop(PlayerDropItemEvent $e){ if($e->getPlayer()->getLevel()->getFolderName() ==...
When i drop is in 2 slot
No, It do not do that
Thank you, but it add item to the following empty slot in player inventory and I want to add it to slot from which player dropped it
I tried public function onDrop(PlayerDropItemEvent $e){ if($e->getPlayer()->getLevel()->getFolderName() == "Hub"){...
Ok, it is working, but how i add item to slot from which was dropped?
If i cancel and drop item it add + 1 dropped item
If player drop item i added item that he drop, but how i check slot number in inventory where item was before dropping and then add to the same...
use $player->teleport(new Vector3($x, $y, $z));
I doing that too it is good method
Separate names with a comma.