Solved How do I replace /help

Discussion in 'Plugin Development' started by CrazyGuy3000, Dec 16, 2013.

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

    CrazyGuy3000

    Hi guys,
    I saw some code that replaced the default /help but I cannot seem to find the code to replace it any more, could somebody point me in a good direction?
     
  2. Offline

    viper_monster

    CrazyGuy3000 listen for PlayerCommandPreprocessEvent, cancel it and then send your custom message.
     
  3. Offline

    RawCode

    simplecommandmap.class

    Code:
            fallbackCommands.add(new GameModeCommand());
            fallbackCommands.add(new HelpCommand());
            fallbackCommands.add(new ExpCommand());
    Code:
        public Set<VanillaCommand> getFallbackCommands() {
            return Collections.unmodifiableSet(fallbackCommands);
        }
    Iterate over given set and remove handler matching HelpCommand.class
    note: use reflections.

    Also you can clean set completely and disable all embedded commands by this.
     
  4. Offline

    CrazyGuy3000

    Sorry guys,
    already worked this out.
     
Thread Status:
Not open for further replies.

Share This Page