From 1f69c204f65626045eb4e3a3fd22fe73c2d264be Mon Sep 17 00:00:00 2001 From: Alexander Meech Date: Sun, 30 Oct 2016 23:14:13 -0400 Subject: [PATCH] Fix Trick or Treat Chest Logging in Cust Server --- .../staffServer/customerSupport/CustomerSupport.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java index fa2d4c7bf..8c5ee0d7c 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java @@ -263,9 +263,9 @@ public class CustomerSupport extends MiniPlugin implements ResultSetCallable { if (transaction.Coins == 0 && transaction.Gems == 0) { - if (transaction.SalesPackageName.split(" ").length == 3) - trickOrTreatChestsReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[2]); - else if (transaction.SalesPackageName.split(" ").length == 2) + if (transaction.SalesPackageName.split(" ").length == 5) + trickOrTreatChestsReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[4]); + else if (transaction.SalesPackageName.split(" ").length == 4) trickOrTreatChestsReceived += 1; }