This repository was archived by the owner on Jul 7, 2023. It is now read-only.
File tree 3 files changed +3
-2
lines changed
src/main/java/com/massivecraft/factions
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ public class Conf {
240
240
public static double econCostMap = 0.0 ;
241
241
public static double econCostPower = 0.0 ;
242
242
public static double econCostShow = 0.0 ;
243
+ public static double econFactionStartingBalance = 0.0 ;
243
244
244
245
245
246
// -------------------------------------------- //
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public void perform() {
99
99
msg (TL .COMMAND_CREATE_YOUSHOULD , p .cmdBase .cmdDescription .getUseageTemplate ());
100
100
101
101
if (Conf .econEnabled ) {
102
- Econ .setBalance (faction .getAccountId (), 0 );
102
+ Econ .setBalance (faction .getAccountId (), Conf . econFactionStartingBalance );
103
103
}
104
104
105
105
if (Conf .logFactionCreate ) {
Original file line number Diff line number Diff line change @@ -657,7 +657,7 @@ public void onPlayerHomeCheck(PlayerTeleportEvent event) throws Exception {
657
657
FPlayer fplayer = FPlayers .getInstance ().getByPlayer (player );
658
658
User user = SavageFactions .plugin .ess .getUser (event .getPlayer ());
659
659
List <String > homes = user .getHomes ();
660
- if (fac .isWilderness () || FPlayers . getInstance (). getByPlayer ( event . getPlayer ()) .getFactionId ().equals (fac .getId ())) {
660
+ if (fac .isWilderness () || fplayer .getFactionId ().equals (fac .getId ())) {
661
661
return ;
662
662
}
663
663
//Warzone and SafeZone Home Initializers
You can’t perform that action at this time.
0 commit comments