Fix Trick or Treat Chest Logging in Cust Server

This commit is contained in:
Alexander Meech 2016-10-30 23:14:13 -04:00 committed by Shaun Bennett
parent e73947b9b1
commit 1f69c204f6

View File

@ -263,9 +263,9 @@ public class CustomerSupport extends MiniPlugin implements ResultSetCallable
{ {
if (transaction.Coins == 0 && transaction.Gems == 0) if (transaction.Coins == 0 && transaction.Gems == 0)
{ {
if (transaction.SalesPackageName.split(" ").length == 3) if (transaction.SalesPackageName.split(" ").length == 5)
trickOrTreatChestsReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[2]); trickOrTreatChestsReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[4]);
else if (transaction.SalesPackageName.split(" ").length == 2) else if (transaction.SalesPackageName.split(" ").length == 4)
trickOrTreatChestsReceived += 1; trickOrTreatChestsReceived += 1;
} }