Fix St Patricks Chest info

This commit is contained in:
samczsun 2017-03-16 10:43:32 -04:00 committed by cnr
parent a0764443a8
commit 5349f53bfe

View File

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