Solved Cancel Default Messages

Discussion in 'Plugin Development' started by RauRogers, Jul 6, 2014.

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

    RauRogers

    Hello. I am making a plugin that covers plot me commands. So instead of /plotme claim it is /farm claim(for example). I got all the code working but now when I do it(since its using plot me) it still runs the plot me default message. Is there anyway to change that? Heres my code just incase you need to look at it :)
    Code:
    if (args[0].equalsIgnoreCase("claim")) {
                String claim = "plotme claim";
                Bukkit.dispatchCommand(p, claim);
                p.sendMessage(ChatColor.GREEN + "Claimed your plot!");
     
  2. Offline

    Wizehh

    No, I don't think that's possible. You could intercept the command and cancel it, but then the command wouldn't run at all. Does this plugin have an API? If so, you could look into it to see if there's a way to change the default message, or something of the sort.
     
Thread Status:
Not open for further replies.

Share This Page