package com.massivecraft.factions.entity; import com.massivecraft.mcore.store.SenderEntity; public class MPlayer extends SenderEntity { // -------------------------------------------- // // META // -------------------------------------------- // public static MPlayer get(Object oid) { return MPlayerColl.get().get(oid); } // -------------------------------------------- // // OVERRIDE // -------------------------------------------- // @Override public MPlayer load(MPlayer that) { this.mapAutoUpdating = that.mapAutoUpdating; this.usingAdminMode = that.usingAdminMode; return this; } @Override public boolean isDefault() { if (this.isMapAutoUpdating()) return false; if (this.isUsingAdminMode()) return false; return true; } // -------------------------------------------- // // FIELDS // -------------------------------------------- // private boolean mapAutoUpdating = false; public boolean isMapAutoUpdating() { return this.mapAutoUpdating; } public void setMapAutoUpdating(boolean mapAutoUpdating) { this.mapAutoUpdating = mapAutoUpdating; this.changed(); } private boolean usingAdminMode = false; public boolean isUsingAdminMode() { return this.usingAdminMode; } public void setUsingAdminMode(boolean usingAdminMode) { this.usingAdminMode = usingAdminMode; this.changed(); } }