Merge branch 'master' of github.com:MassiveCraft/Factions
This commit is contained in:
commit
f0eae47164
@ -139,10 +139,15 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final void resetFactionData(boolean doSpotUpdate)
|
public final void resetFactionData(boolean doSpotUpdate)
|
||||||
|
{
|
||||||
|
if (this.factionId != null && Factions.i.exists(this.factionId)) // Avoid infinite loop! TODO: I think that this is needed is a sign we need to refactor.
|
||||||
{
|
{
|
||||||
Faction currentFaction = this.getFaction();
|
Faction currentFaction = this.getFaction();
|
||||||
if (currentFaction != null)
|
if (currentFaction != null)
|
||||||
|
{
|
||||||
currentFaction.removeFPlayer(this);
|
currentFaction.removeFPlayer(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.factionId = "0"; // The default neutral faction
|
this.factionId = "0"; // The default neutral faction
|
||||||
this.chatMode = ChatMode.PUBLIC;
|
this.chatMode = ChatMode.PUBLIC;
|
||||||
|
@ -288,7 +288,7 @@ public class FactionsPlayerListener implements Listener
|
|||||||
|
|
||||||
me.getPower(); // update power, so they won't have gained any while dead
|
me.getPower(); // update power, so they won't have gained any while dead
|
||||||
|
|
||||||
Location home = me.getFaction().getHome();
|
Location home = me.getFaction().getHome(); // TODO: WARNING FOR NPE HERE THE ORIO FOR RESPAWN SHOULD BE ASSIGNABLE FROM CONFIG.
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
Conf.homesEnabled
|
Conf.homesEnabled
|
||||||
|
Loading…
Reference in New Issue
Block a user