mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-05 00:23:22 +01:00
Don't hurt truces
This commit is contained in:
parent
2675ae1760
commit
3e01b73ab0
@ -405,7 +405,7 @@ public class FactionsEntityListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// You can never hurt faction members or allies
|
// You can never hurt faction members or allies
|
||||||
if (relation.isMember() || relation.isAlly()) {
|
if (relation.isMember() || relation.isAlly() || relation.isTruce()) {
|
||||||
if (notify) {
|
if (notify) {
|
||||||
attacker.msg(TL.PLAYER_PVP_CANTHURT, defender.describeTo(attacker));
|
attacker.msg(TL.PLAYER_PVP_CANTHURT, defender.describeTo(attacker));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user