mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
SPIGOT-4572: Make default no permission message clearer
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -178,7 +178,7 @@ public abstract class Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (permissionMessage == null) {
|
if (permissionMessage == null) {
|
||||||
target.sendMessage(ChatColor.RED + "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.");
|
target.sendMessage(ChatColor.RED + "I'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is a mistake.");
|
||||||
} else if (permissionMessage.length() != 0) {
|
} else if (permissionMessage.length() != 0) {
|
||||||
for (String line : permissionMessage.replace("<permission>", permission).split("\n")) {
|
for (String line : permissionMessage.replace("<permission>", permission).split("\n")) {
|
||||||
target.sendMessage(line);
|
target.sendMessage(line);
|
||||||
|
Reference in New Issue
Block a user