Don't do econ stuff when econ features are disabled
This commit is contained in:
parent
e4f0b8e3de
commit
bdae7bd68f
@ -50,6 +50,8 @@ public class EngineEcon extends Engine
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void takeOnLeave(EventFactionsMembershipChange event)
|
||||
{
|
||||
if (!Econ.isEnabled()) return;
|
||||
|
||||
// If a player is leaving the faction ...
|
||||
if (event.getReason() != MembershipChangeReason.LEAVE) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user