(MCP) Why does my code crash?

Discussion in 'Plugin Development' started by NiitroProgramer, Jan 6, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    NiitroProgramer

    Why does my code crash! Please help!

    package me.ihaq.chrome.module.render;

    import org.lwjgl.input.Keyboard;

    import me.ihaq.chrome.module.Category;
    import me.ihaq.chrome.module.Module;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.settings.KeyBinding;

    public class GhostAura extends Module {


    boolean enabled;

    public GhostAura() {
    super("Ghostaura", Keyboard.KEY_G, Category.COMBAT);

    }

    public void onEnable() {
    super.onEnable();

    enabled = true;

    if(enabled) {
    while(true){
    KeyBinding.onTick(Minecraft.getMinecraft().gameSettings.keyBindUseItem.getKeyCode());
    }
    }





    }

    public void onDisable() {
    super.onDisable();
    enabled = false;
    }



    }
     
  2. Online

    timtower Administrator Administrator Moderator

    Locked
    Modded servers are not supported by Bukkit
     
Thread Status:
Not open for further replies.

Share This Page