using reload as a command?

Discussion in 'Plugin Development' started by herghost, Dec 17, 2011.

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

    herghost

    Hi all

    Can I not use the reload command in a plugin?

    Code:
    this.getCommand("reload").setExecutor(new mreloadCommand());
    
    Gives a null pointer error on this line on startup?

    Cheers
    Dave
     
  2. Offline

    Chiller

    Do Bukkit.getServer().reload(); instead of the command.
     
  3. Offline

    herghost

    Is there no way of running it as an command?
     
  4. Offline

    Chiller

    I don't think so, why cant you just use it like that?
     
  5. Offline

    herghost

    I have it as a chargeable command :(
     
  6. Offline

    halley

    The /reload command is reserved, and a core capability of Bukkit. Find some other word for your player-accessible features.
     
Thread Status:
Not open for further replies.

Share This Page