package com.Acrobot.ChestShop.Listeners.Player;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerTeleportEvent;

/**
 * A fix for a CraftBukkit bug.
 *
 * @author Acrobot
 */
public class PlayerTeleport implements Listener {

    @EventHandler
    public static void onPlayerTeleport(PlayerTeleportEvent event) {
        if (!event.getPlayer().isConversing()) {
            event.getPlayer().closeInventory();
        }
    }
}

@@ -110,24 +110,73 @@
 t.Listener;%0A
+import org.bukkit.event.inventory.InventoryType;%0A
 import org.b
@@ -432,9 +432,8 @@
 if (
-!
 even
@@ -450,22 +450,62 @@
 r().
-isConversing()
+getOpenInventory().getType() != InventoryType.CRAFTING
 ) %7B%0A

Fix the teleport issue