Sponge stuff + done flag

This commit is contained in:
boy0001
2015-08-14 08:52:31 +10:00
parent 393a85c1bc
commit ccbd2ab30f
19 changed files with 211 additions and 40 deletions

View File

@ -21,6 +21,7 @@ public class ConsolePlayer extends PlotPlayer {
public static ConsolePlayer getConsole() {
if (instance == null) {
instance = new ConsolePlayer();
instance.teleport(instance.getLocation());
}
return instance;
}
@ -79,6 +80,8 @@ public class ConsolePlayer extends PlotPlayer {
@Override
public void teleport(Location loc) {
Plot plot = MainUtil.getPlot(loc);
setMeta("lastplot", plot);
this.loc = loc;
}

View File

@ -40,17 +40,17 @@ public class PlotAnalysis {
if (flag != null) {
PlotAnalysis analysis = new PlotAnalysis();
List<Integer> values = (List<Integer>) flag.getValue();
analysis.changes = values.get(0);
analysis.faces = values.get(1);
analysis.data = values.get(2);
analysis.air = values.get(3);
analysis.variety = values.get(4);
analysis.changes = values.get(0); // 2126
analysis.faces = values.get(1); // 90
analysis.data = values.get(2); // 0
analysis.air = values.get(3); // 19100
analysis.variety = values.get(4); // 266
analysis.changes_sd = values.get(5);
analysis.faces_sd = values.get(6);
analysis.data_sd = values.get(7);
analysis.air_sd = values.get(8);
analysis.variety_sd = values.get(9);
analysis.changes_sd = values.get(5); // 2104
analysis.faces_sd = values.get(6); // 89
analysis.data_sd = values.get(7); // 0
analysis.air_sd = values.get(8); // 18909
analysis.variety_sd = values.get(9); // 263
analysis.complexity = analysis.getComplexity();
return analysis;