2013-04-22 21:00:00 +02:00
|
|
|
package com.massivecraft.factions.entity;
|
|
|
|
|
|
|
|
import com.massivecraft.mcore.store.SenderEntity;
|
|
|
|
|
|
|
|
public class MPlayer extends SenderEntity<MPlayer>
|
|
|
|
{
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// META
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
public static MPlayer get(Object oid)
|
|
|
|
{
|
|
|
|
return MPlayerColl.get().get(oid);
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// OVERRIDE
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public MPlayer load(MPlayer that)
|
|
|
|
{
|
2013-04-24 15:14:15 +02:00
|
|
|
this.mapAutoUpdating = that.mapAutoUpdating;
|
|
|
|
this.usingAdminMode = that.usingAdminMode;
|
2013-04-22 21:00:00 +02:00
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isDefault()
|
|
|
|
{
|
2013-04-24 15:14:15 +02:00
|
|
|
if (this.isMapAutoUpdating()) return false;
|
|
|
|
if (this.isUsingAdminMode()) return false;
|
2013-04-22 21:00:00 +02:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// FIELDS
|
|
|
|
// -------------------------------------------- //
|
2013-04-23 09:17:30 +02:00
|
|
|
|
2013-04-24 15:14:15 +02:00
|
|
|
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(); }
|
2013-04-22 21:00:00 +02:00
|
|
|
|
|
|
|
}
|