EverythingRS - Realtime Heatmaps Tutorial

Join Our Support Discord If you need more help or for some reason cannot understand the tutorial please join our support Discord. We're always available to help!

Getting Started

Registration and secret key

  • After adding the everything-rs.jar into your project the next step is to create an account, once the account is created you must register onto the toplist as we use the toplist data in many of our api's.
  • Now go to your dashboard and you should see your secret key

What you are adding

  • Heatmaps can be used to view hotspots in the game, you can view where the wilderness hotspots are, alternatively you can view non-wilderness hotspots. Either can be disabled, so if you only want to show the wilderness hotspot you can do this.
  • Red = Wilderness Hotspots
  • Blue = Non Wilderness Hotspots

Making the Heatmaps work with your server

  • This part of the tutorial is for PI & Ruse, but can easily be changed to work with any server. If you want me to add a snippet on the thread so it can work with your framework leave a comment with the server base you want the snippet for.
In your server startup (Server.java) under
public static void main(
Add this and change your secret key to the one on your account
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.getUsername(),
                    new com.everythingrs.heatmaps.Heatmap(player.getUsername(), player.absX, player.absY,
                        player.height));
            }
        }
        com.everythingrs.heatmaps.Heatmap.update("secret_key");
    }
}, 0, 5, java.util.concurrent.TimeUnit.SECONDS);
In GameServer.java under
public static void main(
Add this and change your secret key to the one on your account
com.everythingrs.service.Service.scheduledService.scheduleAtFixedRate(new Runnable() {
            @Override
            public void run() {
                com.everythingrs.heatmaps.Heatmap.getMap().clear();
                for (Player player: World.getPlayers()) {
                    if (player != null) {
                        com.everythingrs.heatmaps.Heatmap.getMap().put(player.getUsername(),
                            new com.everythingrs.heatmaps.Heatmap(player.getUsername(), player.getPosition().getX(),
                                player.getPosition().getY(), player.getPosition().getZ()));
                    }
                }
                com.everythingrs.heatmaps.Heatmap.update("secret_key");
            }
        }, 0, 5, java.util.concurrent.TimeUnit

Fin

  • You are finished with the tutorial and can now view your heatmaps on your subdomain page