package com.example; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; public class CrashCommand extends CommandBase { @Override public String getCommandName() { return "crashme"; } @Override public String getCommandUsage(ICommandSender sender) { return ""; } @Override public void processCommand(ICommandSender sender, String[] args) throws CommandException { ExampleMod.screenToOpenNextTick = new MyGuiScreen(); } @Override public boolean canCommandSenderUseCommand(ICommandSender sender) { return true; } }