Main.java package cn.minezone.xxx;import org.bukkit.Bukkit;import org.bukkit.event.EventHandler;import org.bukkit.event.Listener;import org.bukkit.event.inventory.InventoryMoveItemEvent;import org.bukkit.plugin.java.JavaPlugin;public class
package cn.minezone.xxx; import org.bukkit.Bukkit; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.inventory.InventoryMoveItemEvent; import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin implements Listener{ @Override public void onEnable(){ Bukkit.getPluginManager().registerEvents(this, this); } @EventHandler public void onItemMove(InventoryMoveItemEvent e){ if(e.getItem().getTypeId() == 373 && (e.getItem().getData().getData() == 46 || e.getItem().getData().getData() == 78)){ e.setCancelled(true); } } }