Don't do econ stuff when econ features are disabled

This commit is contained in:
Magnus Ulf 2020-01-15 12:07:04 +01:00
parent e4f0b8e3de
commit bdae7bd68f

View File

@ -50,6 +50,8 @@ public class EngineEcon extends Engine
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void takeOnLeave(EventFactionsMembershipChange event) public void takeOnLeave(EventFactionsMembershipChange event)
{ {
if (!Econ.isEnabled()) return;
// If a player is leaving the faction ... // If a player is leaving the faction ...
if (event.getReason() != MembershipChangeReason.LEAVE) return; if (event.getReason() != MembershipChangeReason.LEAVE) return;