Changing the Permissions Denied Message (Pex)

Discussion in 'Plugin Development' started by AmberK, Apr 10, 2012.

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

    AmberK

    I personally had no idea how to go about this. I thought about tinkering the source from PermBukkit a bit..:
    Code:java
    1. private boolean checkPerm(CommandSender sender, String subnode) {
    2. boolean ok = sender.hasPermission("permissions." + subnode);
    3. if (!ok) {
    4. sender.sendMessage(ChatColor.RED + "You do not have permissions to do that.");
    5. }
    6. return ok;
    7. }

    To be able to change the permissions denied message from the huge hunk of text Pex spits at you. If anyone has tried this, let me know (I can also attempt converting to Vault, but knowing Pex as well would be nice :))
     
Thread Status:
Not open for further replies.

Share This Page