Hey, I encountered some bugs while playing PMMP. One is that often, the whole game crashes(the client) and exits you out of Minecraft when teleporting to a different world Two is that you can't "craft-all." For example, when converting diamond blocks into ingots, the game doesn't let you do that by resetting crafted diamonds and returning the diamond block. Any ideas on how to fix these issues?
With the crafting issue correct me if I'm wrong, but it's due to pocketmine and I doubt it can be fixed. For the teleporting issue if you could send some console loggings that would help with diagnosing the issue you are having
so i think you problem is in your server?, Ok so, mybe you should load that level befor teleport to it? did you use WorldLoader Plugin? are you sure problem is'nt for map? how do you create that map? is map for pc? can you give me error? ok, there is a lot functions to solve this, PHP: CraftingTransactionCraftItemEvent you can solve it by use these 2 functions, read about these onGithub. but pls explain more your first problem
1. All of the world are already pre-loaded 2. Crafting issue, yes I had it but it was solved 3. There are no console logs because it was due to timeout.
/spawn is causing the crash. PHP: <?phpnamespace Spawn;use pocketmine\plugin\PluginBase;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\item\Item;use pocketmine\Player;use pocketmine\utils\TextFormat as C;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\Listener;class Main extends PluginBase implements Listener{ /** @var string[] */ private $config; public function onEnable() : void { $this->config = $this->getConfig()->getAll(); } public function onCommand(CommandSender $s, Command $cmd,$label, array $args):bool { $ds = $this->getServer()->getDefaultLevel()->getSpawnLocation(); $name = $s->getName(); switch($cmd->getName()) { case "spawn": if($s instanceof Player) { $s->sendMessage($this->config["onteleport"]); $s->teleport($ds); return true; } else { $s->sendMessage($this->config["useingame"]); return true; } } }}
:L my eyes are bad working, or you dont register events? XD PHP: public function onEnable() : void { $this->getServer()->getPluginManager()->registerEvents($this, $this); $this->config = $this->getConfig()->getAll(); }
i didnt say the crast cause is you dont register events, i said my eyes are working bad and idont see register events or he didnt registered events, READ FULL POST, THEN REPLAY