mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Multiple Changes Check Commits (#48)
* Temp Hiscores & SettingsLoader changes Registered Accounts cycle count change * EverythingRS Heatmap
This commit is contained in:
committed by
Daniel Ginovker
parent
83e612b50f
commit
5b4c669d64
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user