aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/MylesAndMore/tumble/commands/ReloadCommand.java4
-rw-r--r--src/main/resources/config.yml5
2 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/com/MylesAndMore/tumble/commands/ReloadCommand.java b/src/main/java/com/MylesAndMore/tumble/commands/ReloadCommand.java
index 876aac9..9823259 100644
--- a/src/main/java/com/MylesAndMore/tumble/commands/ReloadCommand.java
+++ b/src/main/java/com/MylesAndMore/tumble/commands/ReloadCommand.java
@@ -10,11 +10,11 @@ public class ReloadCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (!sender.hasPermission("tumble.reload")) {
- sender.sendMessage(ChatColor.RED + "You do not have permission to execute this command!");
+ sender.sendMessage(ChatColor.RED + Bukkit.getServer().getPluginManager().getPlugin("tumble").getConfig().getString("permissionMessage"));
}
else {
Bukkit.getServer().getPluginManager().getPlugin("tumble").reloadConfig();
- sender.sendMessage(ChatColor.GREEN + "Tumble configuration reloaded.");
+ sender.sendMessage(ChatColor.GREEN + "Tumble configuration reloaded successfully.");
}
return true;
}
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index 3a6c8ec..232f4a7 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -1,3 +1,6 @@
# Hides join/leave messages in public chat
# Default is true
-hideJoinLeaveMessages: true \ No newline at end of file
+hideJoinLeaveMessages: true
+
+# Customize the message that displays when the player does not have permission to execute a command from this plugin
+permissionMessage: You do not have permission to perform this command! \ No newline at end of file