SpeedRun Minigame icon

SpeedRun Minigame -----

NEW: Racing | MySQL/SQLite | Bungee/MultiArena | Achievements | Leaderboards | API | MCJukebox/NBS



Leaderboard Update
Please read everything about this update before updating on your server.
  • Reworked the leaderboard system.
    • Now uses HolographicDisplays.
      • Dropped sign support.
    • Change how data is sent and received.
    • You can set leaderboard update time.
  • Improvements on the online storage system.
  • Improvements on game mechanics.
  • Leaderboard methods re-added to the API.

HolographicDisplays and Data
Now you have the option in settings file Leaderboard.Data-Limit - default is 10 wich means that SpeedRun will get only the top 10 players and after this no placeholder will be registered - so if you want top 20 change the Data-Limit option to 20.

If you are looking for Sign Leaderboard this may be added again but it's not in the to-do list for now, however using the API you can access the leaderboard and create your own system.

API update
New methods
Code (Text):


    /**
     * Get the wins leaderboard;
     *
     * @return The list of avaliable data.
     */
    public List<Entry<String, Integer>> getWinsLeaderboard();
   
    /**
     * Get checkpoints leaderboard;
     *
     * @return The list of avaliable data.
     */
    public List<Entry<String, Integer>> getCheckpointsLeaderboard();
   
    /**
     * Get offline player data.
     *
     * @param name - The player name
     * @return Offline player data
     */
    public OfflineGamePlayer getOfflineGamePlayer(String name);
Example of usage
Code (Text):

public void using() {
        List<Entry<String, Integer>> checkpointsLB = SpeedRun.getAPI().getCheckpointsLeaderboard();
        if(checkpointsLB.get(0) != null) {
            Integer checkpoints = checkpointsLB.get(0).getValue();
            String name = checkpointsLB.get(0).getKey();  
         
            Bukkit.broadcastMessage(name + " is top 1 with " + checkpoints + " checkpoints.");
        }
    }
 
----------, Mar 29, 2018
Resource Information
Author:
----------
Total Downloads: 186
First Release: Aug 17, 2016
Last Update: Jan 19, 2025
Category: ---------------
All-Time Rating:
14 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings