public static boolean substractTradingFee(Player player,int price){
  BigDecimal fee=calculateFee(player,price);
  return player.drop("money",fee.intValue());
}

public static boolean substractTradingFee ( Player player , int price ) { BigDecimal fee = calculateFee ( player , price ) ; return player . drop ( "money" , fee . intValue ( ) ) ; }
substracts the trading fee from the player depending on the given price
