CoreProtect Persistence of ForEach

This commit is contained in:
Driftay 2019-11-21 08:07:55 -05:00
parent 649392363f
commit e60d58e68b

View File

@ -622,8 +622,8 @@ public class FactionsPlayerListener implements Listener {
.replace("{y}", e.getClickedBlock().getY() + "") .replace("{y}", e.getClickedBlock().getY() + "")
.replace("{z}", e.getClickedBlock().getZ() + "")); .replace("{z}", e.getClickedBlock().getZ() + ""));
String rowFormat = TL.COMMAND_INSPECT_ROW.toString(); String rowFormat = TL.COMMAND_INSPECT_ROW.toString();
for (int i = 0; i < info.size(); i++) { for (String[] strings : info) {
CoreProtectAPI.ParseResult row = coAPI.parseResult(info.get(i)); CoreProtectAPI.ParseResult row = coAPI.parseResult(strings);
player.sendMessage(rowFormat player.sendMessage(rowFormat
.replace("{time}", convertTime(row.getTime())) .replace("{time}", convertTime(row.getTime()))
.replace("{action}", row.getActionString()) .replace("{action}", row.getActionString())