|
@ -23,7 +23,7 @@ import com.entryrise.lagassist.Main; |
|
|
|
|
|
|
|
|
public class ChkAnalyse { |
|
|
public class ChkAnalyse { |
|
|
|
|
|
|
|
|
protected static int ammoshow = Main.config.getInt("chunkanalyse.ammount"); |
|
|
|
|
|
|
|
|
protected static int ammoshow = Main.config.getInt("chunkanalyse.amount"); |
|
|
protected static Map<String, Integer> values = new HashMap<String, Integer>(); |
|
|
protected static Map<String, Integer> values = new HashMap<String, Integer>(); |
|
|
private static List<ChkStats> scores = new ArrayList<ChkStats>(); |
|
|
private static List<ChkStats> scores = new ArrayList<ChkStats>(); |
|
|
|
|
|
|
|
@ -93,10 +93,6 @@ public class ChkAnalyse { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
p.sendMessage(""); |
|
|
|
|
|
p.sendMessage("⬛⬛⬛⬛⬛⬛ §f§lCHUNKANALYSER ⬛⬛⬛⬛⬛⬛"); |
|
|
|
|
|
p.sendMessage(""); |
|
|
|
|
|
|
|
|
|
|
|
Stream<Map.Entry<Chunk, Integer>> sorted = chunkscore.entrySet().stream() |
|
|
Stream<Map.Entry<Chunk, Integer>> sorted = chunkscore.entrySet().stream() |
|
|
.sorted(Collections.reverseOrder(Map.Entry.comparingByValue())); |
|
|
.sorted(Collections.reverseOrder(Map.Entry.comparingByValue())); |
|
|
|
|
|
|
|
@ -105,12 +101,15 @@ public class ChkAnalyse { |
|
|
|
|
|
|
|
|
for (Chunk ch : topTen.keySet()) { |
|
|
for (Chunk ch : topTen.keySet()) { |
|
|
int score = chunkscore.get(ch); |
|
|
int score = chunkscore.get(ch); |
|
|
p.sendMessage(" ✸ Chunk (" + String.valueOf(ch.getX()) + " " + String.valueOf(ch.getZ()) + ") - Score " |
|
|
|
|
|
+ String.valueOf(score)); |
|
|
|
|
|
|
|
|
p.sendMessage(""); |
|
|
|
|
|
p.sendMessage("⬛⬛⬛⬛⬛⬛ §f§lCHUNKANALYSER ⬛⬛⬛⬛⬛⬛"); |
|
|
|
|
|
p.sendMessage(""); |
|
|
|
|
|
p.sendMessage(""); |
|
|
|
|
|
p.sendMessage("⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛"); |
|
|
|
|
|
for (String str : Main.lang.getStringList("chunkanalyse.result")) { |
|
|
|
|
|
p.sendMessage(str.replace("$1", String.valueOf(ch.getX()) + " " + String.valueOf(ch.getZ())).replace("$2", String.valueOf(score))) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
p.sendMessage(""); |
|
|
|
|
|
p.sendMessage("⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛"); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static void analyseCurrentChunk(CommandSender s) { |
|
|
public static void analyseCurrentChunk(CommandSender s) { |
|
|