1414import net .ess3 .api .IEssentials ;
1515import org .bukkit .ChatColor ;
1616import org .bukkit .Location ;
17+ import org .bukkit .command .CommandSender ;
1718import org .bukkit .entity .Player ;
1819import org .bukkit .event .player .PlayerTeleportEvent .TeleportCause ;
1920import org .bukkit .potion .PotionEffect ;
@@ -132,7 +133,7 @@ public void healCooldown() throws Exception
132133 @ Override
133134 public void giveMoney (final BigDecimal value )
134135 {
135- giveMoney (value , null );
136+ giveMoney (value , ( CommandSource ) null );
136137 }
137138
138139 @ Override
@@ -149,6 +150,13 @@ public void giveMoney(final BigDecimal value, final CommandSource initiator)
149150 initiator .sendMessage (_ ("addedToOthersAccount" , NumberUtil .displayCurrency (value , ess ), this .getDisplayName (), NumberUtil .displayCurrency (getMoney (), ess )));
150151 }
151152 }
153+
154+ @ Override
155+ @ Deprecated
156+ public void giveMoney (final BigDecimal value , final CommandSender initiator )
157+ {
158+ giveMoney (value , new CommandSource (initiator ));
159+ }
152160
153161 @ Override
154162 public void payUser (final User reciever , final BigDecimal value ) throws ChargeException
@@ -173,7 +181,7 @@ public void payUser(final User reciever, final BigDecimal value) throws ChargeEx
173181 @ Override
174182 public void takeMoney (final BigDecimal value )
175183 {
176- takeMoney (value , null );
184+ takeMoney (value , ( CommandSource ) null );
177185 }
178186
179187 @ Override
@@ -190,6 +198,13 @@ public void takeMoney(final BigDecimal value, final CommandSource initiator)
190198 initiator .sendMessage (_ ("takenFromOthersAccount" , NumberUtil .displayCurrency (value , ess ), this .getDisplayName (), NumberUtil .displayCurrency (getMoney (), ess )));
191199 }
192200 }
201+
202+ @ Override
203+ @ Deprecated
204+ public void takeMoney (final BigDecimal value , final CommandSender initiator )
205+ {
206+ takeMoney (value , new CommandSource (initiator ));
207+ }
193208
194209 @ Override
195210 public boolean canAfford (final BigDecimal cost )
0 commit comments