From ed7d8d0c67ac94efd52d38ae94118c30082aa651 Mon Sep 17 00:00:00 2001 From: NavidK0 Date: Wed, 15 Jul 2015 08:27:45 -0400 Subject: [PATCH] Updated versioning to 8.6.1 --- build.gradle | 2 +- .../commands/LibsDisguisesCommand.java | 30 ++++++++++--------- src/main/resources/plugin.yml | 2 +- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/build.gradle b/build.gradle index 3bfce095..e47dddc1 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion sourceCompatibility = '1.7' ext.spigotVersion = '1.8.7-R0.1-SNAPSHOT' -ext.disguisesVersion = '8.6' +ext.disguisesVersion = '8.6.1' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' diff --git a/src/main/java/me/libraryaddict/disguise/commands/LibsDisguisesCommand.java b/src/main/java/me/libraryaddict/disguise/commands/LibsDisguisesCommand.java index 211ffa80..96bbd2aa 100644 --- a/src/main/java/me/libraryaddict/disguise/commands/LibsDisguisesCommand.java +++ b/src/main/java/me/libraryaddict/disguise/commands/LibsDisguisesCommand.java @@ -11,20 +11,22 @@ public class LibsDisguisesCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { - if (args.length == 0) { - sender.sendMessage(ChatColor.DARK_GREEN - + "This server is running " - + "Lib's Disguises v." - + Bukkit.getPluginManager().getPlugin("LibsDisguises").getDescription().getVersion() - + " by libraryaddict, maintained by NavidK0.\n" - + "Use /libsdisguises reload to reload the config. All disguises will be blown by doing this."); - } else if (args.length > 0) { - if (args[0].equalsIgnoreCase("reload")) { - LibsDisguises.instance.reload(); - sender.sendMessage(ChatColor.GREEN + "[LibsDisguises] Reloaded config."); - return true; - } else { - sender.sendMessage(ChatColor.RED + "[LibsDisguises] That command doesn't exist!"); + if (!sender.hasPermission("libsdisguises.reload")) { + if (args.length == 0) { + sender.sendMessage(ChatColor.DARK_GREEN + + "This server is running " + + "Lib's Disguises v." + + Bukkit.getPluginManager().getPlugin("LibsDisguises").getDescription().getVersion() + + " by libraryaddict, maintained by NavidK0.\n" + + "Use /libsdisguises reload to reload the config. All disguises will be blown by doing this."); + } else if (args.length > 0) { + if (args[0].equalsIgnoreCase("reload")) { + LibsDisguises.instance.reload(); + sender.sendMessage(ChatColor.GREEN + "[LibsDisguises] Reloaded config."); + return true; + } else { + sender.sendMessage(ChatColor.RED + "[LibsDisguises] That command doesn't exist!"); + } } } return true; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index d69f809a..102c7132 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: LibsDisguises main: me.libraryaddict.disguise.LibsDisguises -version: 8.6 +version: 8.6.1 author: libraryaddict authors: [Byteflux, Navid K.] depend: [ProtocolLib]