diff options
| author | Myles <mylesandmore9@gmail.com> | 2022-11-27 14:40:31 -0600 | 
|---|---|---|
| committer | Myles <mylesandmore9@gmail.com> | 2022-11-27 14:40:31 -0600 | 
| commit | 4a39a60dc8f3bf24a4ae4af334a34d9606b58307 (patch) | |
| tree | cfbe52d28f4dfdbf977782d10620b5032ca04f76 /src/main/java/com/MylesAndMore/tumble/commands | |
| parent | 94899286c562537e8849ef37c1bce2ef543f4832 (diff) | |
| download | Tumble-4a39a60dc8f3bf24a4ae4af334a34d9606b58307.tar.gz Tumble-4a39a60dc8f3bf24a4ae4af334a34d9606b58307.tar.bz2 Tumble-4a39a60dc8f3bf24a4ae4af334a34d9606b58307.zip  | |
rename 'setworld' command to 'link'
Diffstat (limited to '')
| -rw-r--r-- | src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java b/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java index 0a7696d..5b5b782 100644 --- a/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java +++ b/src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java @@ -15,7 +15,7 @@ public class SetWorldConfig implements CommandExecutor {          // Catch for null arguments          if (args.length == 2) {              // Check if sender has perms to run command -            if (sender.hasPermission("tumble.setworld")){ +            if (sender.hasPermission("tumble.link")){                  // Initialize vars for their respective command arguments                  String world = args[0];                  String worldType = args[1]; @@ -31,7 +31,7 @@ public class SetWorldConfig implements CommandExecutor {                              TumbleManager.getPlugin().saveConfig();                              // Feedback                              sender.sendMessage(ChatColor.GREEN + "Lobby world successfully linked: " + ChatColor.GRAY + world); -                            sender.sendMessage(ChatColor.RED + "Please restart your server for the changes to take effect; reloading the plugin is insufficient!"); +                            sender.sendMessage(ChatColor.GREEN + "Please restart your server for the changes to take effect; " + ChatColor.RED + "reloading the plugin is insufficient!");                          }                          // Feedback for duplicate world configuration                          else { @@ -50,7 +50,7 @@ public class SetWorldConfig implements CommandExecutor {                              TumbleManager.getPlugin().getConfig().set("gameWorld", world);                              TumbleManager.getPlugin().saveConfig();                              sender.sendMessage(ChatColor.GREEN + "Game world successfully linked: " + ChatColor.GRAY + world); -                            sender.sendMessage(ChatColor.RED + "Please restart your server for the changes to take effect; reloading the plugin is insufficient!"); +                            sender.sendMessage(ChatColor.GREEN + "Please restart your server for the changes to take effect; " + ChatColor.RED + "reloading the plugin is insufficient!");                          }                          else {                              sender.sendMessage(ChatColor.RED + "That world has already been linked, please choose/create another world!");  | 
