From 7db5805f166cea05b7944e900b43a91bf2a4f2e2 Mon Sep 17 00:00:00 2001 From: LCastr0 Date: Sat, 8 Apr 2017 23:11:41 -0300 Subject: [PATCH] Fixed lenght --- .../mineplex/staffServer/customerSupport/CustomerSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java index d735896a8..17cc91293 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java @@ -335,9 +335,9 @@ public class CustomerSupport extends MiniPlugin implements ResultSetCallable { if (transaction.Coins == 0 && transaction.Gems == 0) { - if (transaction.SalesPackageName.split(" ").length == 4) + if (transaction.SalesPackageName.split(" ").length == 3) springChestsReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[3]); - else if (transaction.SalesPackageName.split(" ").length == 3) + else if (transaction.SalesPackageName.split(" ").length == 2) springChestsReceived += 1; } }