Changed lenght (missed one thing)

This commit is contained in:
LCastr0 2017-04-08 23:17:39 -03:00
parent 7db5805f16
commit 4388a7f70e

View File

@ -336,7 +336,7 @@ 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 == 3)
springChestsReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[3]); springChestsReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[2]);
else if (transaction.SalesPackageName.split(" ").length == 2) else if (transaction.SalesPackageName.split(" ").length == 2)
springChestsReceived += 1; springChestsReceived += 1;
} }