mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
commit
091f381def
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue