aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/MylesAndMore/tumble/Main.java2
-rw-r--r--src/main/java/com/MylesAndMore/tumble/commands/SetWorldConfig.java6
-rw-r--r--src/main/resources/plugin.yml20
3 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/com/MylesAndMore/tumble/Main.java b/src/main/java/com/MylesAndMore/tumble/Main.java
index ef360d9..c635daf 100644
--- a/src/main/java/com/MylesAndMore/tumble/Main.java
+++ b/src/main/java/com/MylesAndMore/tumble/Main.java
@@ -14,7 +14,7 @@ public class Main extends JavaPlugin{
getServer().getPluginManager().registerEvents(new EventListener(), this);
// Register commands
this.getCommand("reload").setExecutor(new ReloadCommand());
- this.getCommand("setworld").setExecutor(new SetWorldConfig());
+ this.getCommand("link").setExecutor(new SetWorldConfig());
this.getCommand("start").setExecutor(new StartGame());
// Save the default config file (packaged in the JAR)
this.saveDefaultConfig();
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!");
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index b41c023..dd24bcc 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -11,23 +11,23 @@ depend:
commands:
reload:
description: Reloads the plugin's config.
- usage: /tumble:reload
+ usage: '§cUsage: /tumble:reload'
permission: reload
- setworld:
- description: Sets a world on the server as a lobby/game world.
- usage: /tumble:setworld <world> lobby|game
- permission: setworld
- aliases: [set-world]
+ link:
+ description: Links a world on the server as a lobby/game world.
+ usage: '§cUsage: /tumble:link <world> lobby|game'
+ permission: link
+ aliases: [linkworld, link-world]
start:
description: Force starts a Tumble match.
- usage: /tumble:startgame
- permission: startgame
+ usage: '§cUsage: /tumble:start'
+ permission: start
permissions:
reload:
description: Allows you to reload the plugin's config.
default: op
- setworld:
- description: Allows you to set a world on the server as a lobby/game world.
+ link:
+ description: Allows you to link a world on the server as a lobby/game world.
default: op
start:
description: Allows you to start a Tumble match.