mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-05 10:11:28 +01:00
Use .get() method always.
This commit is contained in:
parent
00774087d3
commit
ab498b9f60
@ -13,8 +13,6 @@ public class FPlayerColl extends PlayerEntityCollection<FPlayer>
|
||||
{
|
||||
public static FPlayerColl i = new FPlayerColl();
|
||||
|
||||
Factions p = Factions.get();
|
||||
|
||||
private FPlayerColl()
|
||||
{
|
||||
super
|
||||
@ -41,7 +39,7 @@ public class FPlayerColl extends PlayerEntityCollection<FPlayer>
|
||||
{
|
||||
if ( ! FactionColl.i.exists(fplayer.getFactionId()))
|
||||
{
|
||||
p.log("Reset faction data (invalid faction) for player "+fplayer.getName());
|
||||
Factions.get().log("Reset faction data (invalid faction) for player "+fplayer.getName());
|
||||
fplayer.resetFactionData(false);
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,6 @@ public class FactionColl extends EntityCollection<Faction>
|
||||
{
|
||||
public static FactionColl i = new FactionColl();
|
||||
|
||||
Factions p = Factions.get();
|
||||
|
||||
private FactionColl()
|
||||
{
|
||||
super
|
||||
@ -183,7 +181,7 @@ public class FactionColl extends EntityCollection<Faction>
|
||||
{
|
||||
if ( ! this.exists(id))
|
||||
{
|
||||
p.log(Level.WARNING, "Non existing factionId "+id+" requested! Issuing cleaning!");
|
||||
Factions.get().log(Level.WARNING, "Non existing factionId "+id+" requested! Issuing cleaning!");
|
||||
Board.clean();
|
||||
FPlayerColl.i.clean();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user