/help editing

Discussion in 'Spigot Plugin Help' started by Michaelina, Sep 11, 2019 at 6:38 AM.

  1. Hello. Does anyone know how to edit these messages?

    Attached Files:

    • 1.jpg
      File size:
      6.9 KB
    #1 Michaelina, Sep 11, 2019 at 6:38 AM
    Last edited: Sep 11, 2019 at 7:31 AM
  2. @Override
    public void onEnable() {
    Bukkit.getPluginManager().registerEvents(this, this);

    @EventHandler(priority = EventPriority.HIGHEST)
    public void onCommand(PlayerCommandPreprocessEvent e) {
    String s = e.getMessage();
    if(s.equals("/help")) //Can be every Command

    With this piece of code you can block every command that any plugin uses.

    If you want to block /help just don't change anything. I would also block /? since it does the same as /help. If you also want to block /? change this: "if(s.equals("/help"))" to "if(s.equals("/help") || s.equals("/?"))"​
  3. Based on the color of that message, that is the EssentialsX help command.
    You can download the message file for EssentialsX and modify any of the messages it outputs.