Fixed Small Issue With Owner List In Replacement Of TL Translation
This commit is contained in:
parent
b8c695c2f4
commit
f384100925
@ -309,7 +309,7 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
if ((landOwned && factionToCheck.getOwnerListString(loc).contains(player.getName())) || (me.getRole() == Role.LEADER && me.getFactionId().equals(factionToCheck.getId()))) {
|
if ((landOwned && factionToCheck.getOwnerListString(loc).contains(player.getName())) || (me.getRole() == Role.LEADER && me.getFactionId().equals(factionToCheck.getId()))) {
|
||||||
return true;
|
return true;
|
||||||
} else if (landOwned && !factionToCheck.getOwnerListString(loc).contains(player.getName())) {
|
} else if (landOwned && !factionToCheck.getOwnerListString(loc).contains(player.getName())) {
|
||||||
me.msg(TL.ACTIONS_OWNEDTERRITORYDENY, factionToCheck.getOwnerListString(loc));
|
me.msg(TL.ACTIONS_OWNEDTERRITORYDENY.toString().replace("{owners}", factionToCheck.getOwnerListString(loc)));
|
||||||
if (doPain) player.damage(Conf.actionDeniedPainAmount);
|
if (doPain) player.damage(Conf.actionDeniedPainAmount);
|
||||||
return false;
|
return false;
|
||||||
} else if (!landOwned && access == Access.ALLOW) {
|
} else if (!landOwned && access == Access.ALLOW) {
|
||||||
|
@ -14,6 +14,7 @@ import org.bukkit.entity.Player;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
import static com.massivecraft.factions.zcore.util.TagReplacer.TagType;
|
import static com.massivecraft.factions.zcore.util.TagReplacer.TagType;
|
||||||
|
|
||||||
@ -106,7 +107,7 @@ public class TagUtil {
|
|||||||
line = be.maximvdw.placeholderapi.PlaceholderAPI.replacePlaceholders(player, line);
|
line = be.maximvdw.placeholderapi.PlaceholderAPI.replacePlaceholders(player, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
return line;
|
return Objects.requireNonNull(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user