Solved Disable God-Mode

Discussion in 'Plugin Development' started by Flexion, Oct 14, 2014.

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

    Flexion

    Hello. How can I disable the god mode in a plugin?
     
  2. Offline

    fireblast709

    Flexion I suppose that depends on the plugin.
     
    AdamQpzm likes this.
  3. Offline

    Flexion

    Okay. But is it possible to send a command from the console with a plugin?
     
  4. Offline

    teej107

    Flexion Yes, but
     
  5. Offline

    VenamousV

    What plugin do you have to enable god mode?
     
  6. Offline

    Flexion

    I use the "Essentials" Plugin for this.
     
  7. Offline

    Flexion

    Okay. I made it. Here is the Code
    Code:
    Player p = null;
    if (sender instanceof Player) {
    p = (Player) sender;
    }
    Bukkit.getServer().dispatchCommand(Bukkit.getServer().getConsoleSender(), "god " + player.getName() + " disable");
     
Thread Status:
Not open for further replies.

Share This Page