Multiple Changes Check Commits (#48)

* Temp Hiscores & SettingsLoader changes

 Registered Accounts cycle count change

* EverythingRS Heatmap
This commit is contained in:
Josh Shippam
2019-10-10 15:59:59 +01:00
committed by Daniel Ginovker
parent 83e612b50f
commit 5b4c669d64
8 changed files with 38 additions and 10 deletions
+18
View File
@@ -51,6 +51,7 @@ import redone.world.clip.Region;
public class Server {
public static String ersSecret;
public static int[] cannonsX = new int [50];
public static int[] cannonsY = new int [50];
public static String[] cannonsO = new String [50];
@@ -156,6 +157,23 @@ public class Server {
System.out.println("Server listening on port "
+ serverlistenerPort);
if(!ersSecret.equals("")) {
com.everythingrs.service.Service.scheduledService.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
com.everythingrs.heatmaps.Heatmap.getMap().clear();
for (Player player : PlayerHandler.players) {
if (player != null) {
com.everythingrs.heatmaps.Heatmap.getMap().put(player.playerName,
new com.everythingrs.heatmaps.Heatmap(player.playerName, player.absX, player.absY,
player.heightLevel));
}
}
com.everythingrs.heatmaps.Heatmap.update(ersSecret);
}
}, 0, 10, java.util.concurrent.TimeUnit.SECONDS);
}
/**
* Main Server Tick
*/