Make the default permission message configurable

This commit is contained in:
Shane Freeder
2018-11-18 19:49:56 +00:00
parent 4da5176b89
commit f944b0b8d6
2 changed files with 11 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ public final class PaperCommand extends Command {
if (sender.hasPermission(BASE_PERM + permission) || sender.hasPermission("bukkit.command.paper")) {
return true;
}
sender.sendMessage(text("I'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.", RED));
sender.sendMessage(Bukkit.permissionMessage());
return false;
}