Merge pull request #376 from jedk1/master

Fix help command
This commit is contained in:
OmniCypher 2016-01-10 14:17:21 -08:00
commit 091f381def
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ public class HelpCommand extends PKCommand {
else if (args.size() == 0) {
List<String> strings = new ArrayList<String>();
for (PKCommand command : instances.values()) {
if (!command.getName().equalsIgnoreCase("help")) {
if (!command.getName().equalsIgnoreCase("help") && sender.hasPermission("bending.command." + command.getName())) {
strings.add(command.getProperUse());
}
}
@ -51,7 +51,7 @@ public class HelpCommand extends PKCommand {
if (isNumeric(arg)) {
List<String> strings = new ArrayList<String>();
for (PKCommand command : instances.values()) {
if (!command.getName().equalsIgnoreCase("help")) {
if (!command.getName().equalsIgnoreCase("help") && sender.hasPermission("bending.command." + command.getName())) {
strings.add(command.getProperUse());
}
}

View file

@ -43,7 +43,7 @@ public class HealingWaters {
Entity entity = GeneralMethods.getTargetedEntity(player, range, new ArrayList<Entity>());
if (entity instanceof LivingEntity && inWater(entity) && player.isSneaking()) {
giveHPToEntity((LivingEntity) entity);
} else if ((player.isSneaking() && shift) || (player.isSneaking() && shift)){
} else if ((player.isSneaking() && shift) || !shift){
giveHP(player);
}
}