From 4766d2a0d1b764d3edf0e8127f0c768a4f2976b2 Mon Sep 17 00:00:00 2001 From: riking Date: Sat, 14 Jun 2014 10:16:36 -0700 Subject: [PATCH] Some wording cleanup --- .../disguise/commands/DisguiseCloneCommand.java | 14 +++++++------- .../disguise/commands/LibsDisguisesCommand.java | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/me/libraryaddict/disguise/commands/DisguiseCloneCommand.java b/src/me/libraryaddict/disguise/commands/DisguiseCloneCommand.java index ef1373d6..513070d8 100644 --- a/src/me/libraryaddict/disguise/commands/DisguiseCloneCommand.java +++ b/src/me/libraryaddict/disguise/commands/DisguiseCloneCommand.java @@ -28,12 +28,12 @@ public class DisguiseCloneCommand extends BaseDisguiseCommand { return true; } if (sender.hasPermission("libsdisguises.disguise.disguiseclone")) { - boolean doEnquipment = true; + boolean doEquipment = true; boolean doSneak = false; boolean doSprint = false; for (String option : args) { - if (StringUtils.startsWithIgnoreCase(option, "ignoreEnquip")) { - doEnquipment = false; + if (StringUtils.startsWithIgnoreCase(option, "ignoreEquip") || StringUtils.startsWithIgnoreCase(option, "ignoreEnquip")) { + doEquipment = false; } else if (option.equalsIgnoreCase("doSneakSprint")) { doSneak = true; doSprint = true; @@ -43,11 +43,11 @@ public class DisguiseCloneCommand extends BaseDisguiseCommand { doSprint = true; } else { sender.sendMessage(ChatColor.DARK_RED + "Unknown option '" + option - + "' - Valid options are 'IgnoreEnquipment' 'DoSneakSprint' 'DoSneak' 'DoSprint'"); + + "' - Valid options are 'IgnoreEquipment' 'DoSneakSprint' 'DoSneak' 'DoSprint'"); return true; } } - listener.setDisguiseClone(sender.getName(), new Boolean[] { doEnquipment, doSneak, doSprint }); + listener.setDisguiseClone(sender.getName(), new Boolean[] { doEquipment, doSneak, doSprint }); sender.sendMessage(ChatColor.RED + "Right click a entity in the next " + DisguiseConfig.getDisguiseCloneExpire() + " seconds to grab the disguise reference!"); } else { @@ -62,8 +62,8 @@ public class DisguiseCloneCommand extends BaseDisguiseCommand { protected void sendCommandUsage(CommandSender sender, HashMap, Boolean>> map) { sender.sendMessage(ChatColor.DARK_GREEN + "Right click a entity to get a disguise reference you can pass to other disguise commands!"); - sender.sendMessage(ChatColor.DARK_GREEN + "Beware however, the reference bypasses all permissions checks"); - sender.sendMessage(ChatColor.DARK_GREEN + "/disguiseclone IgnoreEnquipment" + ChatColor.DARK_GREEN + "(" + sender.sendMessage(ChatColor.DARK_GREEN + "Security note: Any references you create will be available to all players able to use disguise references."); + sender.sendMessage(ChatColor.DARK_GREEN + "/disguiseclone IgnoreEquipment" + ChatColor.DARK_GREEN + "(" + ChatColor.GREEN + "Optional" + ChatColor.DARK_GREEN + ")"); } } diff --git a/src/me/libraryaddict/disguise/commands/LibsDisguisesCommand.java b/src/me/libraryaddict/disguise/commands/LibsDisguisesCommand.java index fe2c2ba1..8a46a6ab 100644 --- a/src/me/libraryaddict/disguise/commands/LibsDisguisesCommand.java +++ b/src/me/libraryaddict/disguise/commands/LibsDisguisesCommand.java @@ -10,6 +10,7 @@ public class LibsDisguisesCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + // TODO is public version disclosure a problem? sender.sendMessage(ChatColor.DARK_GREEN + "This server is running " + "Lib's Disguises "