Fixed "Show On Look" feature error and added relational placeholders

This commit is contained in:
Zeshan Aslam 2018-08-02 22:19:13 -04:00
parent 21ff4d5666
commit 6d4fad9668
5 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
name: ActionHealth
main: com.zeshanaslam.actionhealth.Main
version: 3.2.3
version: 3.2.4
softdepend: [PlaceholderAPI, MVdWPlaceholderAPI]
commands:
Actionhealth:

View File

@ -109,6 +109,7 @@ public class HealthUtil {
if (plugin.settingsManager.hasPlaceholderAPI) {
output = me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(player, output);
output = me.clip.placeholderapi.PlaceholderAPI.setRelationalPlaceholders(receiver, player, output);
}
} else {
if (!plugin.settingsManager.healthMessageOther.isEmpty()) {

View File

@ -38,13 +38,12 @@ public class LookThread extends BukkitRunnable {
}
List<LivingEntity> entities = TargetHelper.getLivingTargets(player, plugin.settingsManager.lookDistance);
if (!entities.isEmpty()) {
for (LivingEntity livingEntity : entities) {
if (livingEntity.getType().name().equals("ARMOR_STAND")) continue;
if (player.getWorld() != livingEntity.getWorld()) continue;
String name;
if (livingEntity.getCustomName() == null) {
name = livingEntity.getName();
} else {