@SubscribeEvent public void onGuiUpdate(GuiOpenEvent event) { if(event.getGui() instanceof GuiSleepMP) { event.setCanceled(true); } }