remove
System.out.println("removing");
i think spawn_loc should be [][], u could, then u could make it like that:
int[] loc = Rnd.get(spawn_loc);
activeChar.teleToLocation(spawn_loc[0]+Rnd.get(-radius,radius), spawn_loc[1]+Rnd.get(-radius,radius), spawn_loc[2]);
to
String[] gradeNames = {"","D","C","B","A","S","S80","S84"};
if(grades.contains[gradeNames[o]])
return false;
spawn_loc1 = new int[3];
+ String[] propertySplit = prop.getProperty("SpawnLoc1", "150111,144740,-12248").split(",");
+ spawn_loc1[0] = Integer.parseInt(propertySplit[0]);
+ spawn_loc1[1] = Integer.parseInt(propertySplit[1]);
+ spawn_loc1[2] = Integer.parseInt(propertySplit[2]);
+ spawn_loc2 = new int[3];
+ propertySplit = prop.getProperty("SpawnLoc2", "143665,144418,-12022").split(",");
+ spawn_loc2[0] = Integer.parseInt(propertySplit[0]);
+ spawn_loc2[1] = Integer.parseInt(propertySplit[1]);
+ spawn_loc2[2] = Integer.parseInt(propertySplit[2]);
+ spawn_loc3 = new int[3];
+ propertySplit = prop.getProperty("SpawnLoc3", "144443,147685,-12139").split(",");
+ spawn_loc3[0] = Integer.parseInt(propertySplit[0]);
+ spawn_loc3[1] = Integer.parseInt(propertySplit[1]);
+ spawn_loc3[2] = Integer.parseInt(propertySplit[2]);
to
spawn_loc = new int[3][3];
for(int i = 0;i<3;i++){
propertySplit = prop.getProperty("SpawnLoc"+i, "144443,147685,-12139").split(",");
for(int loc = 0;loc<3;loc++)
spawn_loc[i][loc] = Integer.parseInt(propertySplit[loc]);
}
thats all that came to my mind while reading code, thx a lot for sharing it ^^