1. Guest, as per the stickied thread, this forum has not been in use since 2014. All bugs and feature requests should be posted to JIRA.

Accepted Default No-Permission Message

Discussion in 'Bugs & Feature Requests' started by AmicusMC, May 4, 2013.

Thread Status:
Not open for further replies.
  1. I strongly dislike the message, "I'm sorry but you do not have permission to perform this command. Please contact the server administrator if you believe that this is in error." Can there be a setting in bukkit.yml that would allow me to change the text and the color?

    For example, I might want "Confucius says, 'Not today.'"
     
    • Agree Agree x 2
    • Disagree Disagree x 2
    • Like Like x 1
  2. vemacs

    Artist

    ....

    1. For each plugin.yml, there is an error message that can be stated.

    2. Your permissions plugin should allow you to change the default.

    Please. Stahp.
     
    • Disagree Disagree x 2
  3. CustomForms

    CustomForms Retired Moderator
    Retired Supporter

    Bravo, you didn't know what he is talking about. That default message is hard coded into spigot...

    Please. Stahp.
     
    • Disagree Disagree x 1
  4. vemacs

    Artist

    http://wiki.bukkit.org/Plugin_YAML

    Read.
    Code (Text):
    usage: u have no privs ;_;

    As for the default message hardcoding, I can write a plugin in 2 minutes that overrides that. Want me to do it? lrn2superperms.

    Hardcoding != unchangeable.
     
    • Agree Agree x 1
    • Disagree Disagree x 1
  5. And the jerk of the year award goes to...
     
    • Agree Agree x 3
    • Disagree Disagree x 2
  6. vemacs

    Artist

    me lel
     
    • Bad Spelling Bad Spelling x 2
    • Like Like x 1
    • Informative Informative x 1
  7. Congratulations. Now that you've helped no one considering I'm not going to adjust the plugin.yml file of every plugin I use and that no permissions plugin supports the changing of the message, you can fuck off.
     
    • Old Old x 1
  8. CustomForms

    CustomForms Retired Moderator
    Retired Supporter

    Yet, you made my case even stronger...
     
    • Like Like x 1
    • Agree Agree x 1
  9. Anyone else have a way of doing this?
     
  10. vemacs

    Artist

    wat

    Just implement a CommandExecutor that checks for permission, and sets the usageMessage for the command using setPermissionMessage.

    Learn2Bukkit. nhadobas: You made my case even stronger.

    Code (Text):
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
            if (!sender.hasPermission(cmd.getPermission()) {
            cmd.setPermissionMessage("ur a faget");
            return false;
            }
        return true;
    }
     
     
    • Informative Informative x 1
  11. CustomForms

    CustomForms Retired Moderator
    Retired Supporter

    He is asking for an easy alternative... I'm going to assume he doesn't understand how to do everything you're explaining to him. If he knew, he wouldn't be making this thread. You're cocky, but I like it.
     
    • Like Like x 1
    • Optimistic Optimistic x 1
  12. Ignoring that previous gibberish.

    Implement this into Spigot, please.
     
  13. vemacs

    Artist

    I'm going to assume that he's capable enough to compile that code I posted.

    Kay. I'd like to see md_5 implement that, just for you. If you can't understand an easily readable code block, check your permissions (huehuehue).

    That handles all the plugin.yml replacement, and the spigot message, all in one.
     
  14. Just thought of this - would it also be possible for there to be a way to modify the "Unknown command. Type 'help' for help." message as well? Typing "help" does nothing and I'd rather it say, "Confucius' wisdom does not encompass that which you have spoken."
     
    • Funny Funny x 3
    • Like Like x 2
    • Agree Agree x 2
Thread Status:
Not open for further replies.