From e60d58e68bfad5a1254b0d0db0aa6d4dc689b8f4 Mon Sep 17 00:00:00 2001 From: Driftay Date: Thu, 21 Nov 2019 08:07:55 -0500 Subject: [PATCH] CoreProtect Persistence of ForEach --- .../factions/listeners/FactionsPlayerListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index b5fa34f7..53b5bd40 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -622,8 +622,8 @@ public class FactionsPlayerListener implements Listener { .replace("{y}", e.getClickedBlock().getY() + "") .replace("{z}", e.getClickedBlock().getZ() + "")); String rowFormat = TL.COMMAND_INSPECT_ROW.toString(); - for (int i = 0; i < info.size(); i++) { - CoreProtectAPI.ParseResult row = coAPI.parseResult(info.get(i)); + for (String[] strings : info) { + CoreProtectAPI.ParseResult row = coAPI.parseResult(strings); player.sendMessage(rowFormat .replace("{time}", convertTime(row.getTime())) .replace("{action}", row.getActionString())