mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-09 03:49:57 +01:00
Hopefully fix a couple of economy integration problems
This commit is contained in:
parent
047a03af44
commit
101aa8cabe
@ -92,7 +92,7 @@ public class Faction extends Entity implements EconomyParticipator
|
|||||||
if ( ! Econ.getMethod().createAccount(aid))
|
if ( ! Econ.getMethod().createAccount(aid))
|
||||||
{
|
{
|
||||||
P.p.log(Level.SEVERE, "Error creating faction bank account through Register: "+aid);
|
P.p.log(Level.SEVERE, "Error creating faction bank account through Register: "+aid);
|
||||||
return null;
|
// return null;
|
||||||
}
|
}
|
||||||
MethodAccount acc = Econ.getMethod().getAccount(aid);
|
MethodAccount acc = Econ.getMethod().getAccount(aid);
|
||||||
acc.set(0);
|
acc.set(0);
|
||||||
|
@ -255,8 +255,11 @@ public class Econ
|
|||||||
|
|
||||||
for (Faction faction : Factions.i.get())
|
for (Faction faction : Factions.i.get())
|
||||||
{
|
{
|
||||||
faction.getAccount().add(faction.money);
|
if (faction.money > 0)
|
||||||
faction.money = 0;
|
{
|
||||||
|
faction.getAccount().add(faction.money);
|
||||||
|
faction.money = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user