package markehme.factionsplus.sublisteners;

import markehme.factionsplus.Utilities;
import markehme.factionsplus.MCore.FPUConf;

import com.massivecraft.factions.event.EventFactionsMembershipChange;
import com.massivecraft.factions.event.EventFactionsMembershipChange.MembershipChangeReason;

public class PeacefulSubListener {
	
	public EventFactionsMembershipChange eventFactionsMembershipChange(EventFactionsMembershipChange event) {
		if(event.getReason() != MembershipChangeReason.JOIN) return event;
		
		double boostValue = FPUConf.get(event.getUSender().getUniverse()).peacefulPowerBoost;
		
		if(boostValue> 0 && Utilities.isPeaceful(event.getUSender().getFaction())) {
			Utilities.addPower(event.getUSender(), boostValue);
		}
		
		return event;
	}
}

@@ -123,16 +123,56 @@
 UConf;%0A%0A
+import com.massivecraft.factions.FFlag;%0A
 import c
@@ -660,28 +660,8 @@
  && 
-Utilities.isPeaceful
 (eve
@@ -688,16 +688,40 @@
 action()
+.getFlag(FFlag.PEACEFUL)
 )) %7B%0A%09%09%09

Check the FFlag instead of the utility