LobbyGames [1.8.x-1.21.x] ✅ High Quality Minigames ✅ 100% Customizable ⭕ Increase Player Retention icon

LobbyGames [1.8.x-1.21.x] ✅ High Quality Minigames ✅ 100% Customizable ⭕ Increase Player Retention -----

Create Pool Tables, Soccer / Football, Connect 4, Snake, 2048, Minesweeper, Tic Tac Toe, and more!



Leaderboard Surpass API Event
Added a new custom event, LeaderboardSurpassEvent, to the API. This event is called whenever a player beats another player's score on a lobbygames leaderboard. A config option/interface will be provided in a future update, but for now, here is some example code:
Code (Text):
@EventHandler
public void onLeaderboardSurpass(LeaderboardSurpassEvent e) {
    if (e.getSurpassedPlayerOldRank() == 1) { //new player for 1st place
        //whatever code here
        String playerName = e.getPlayer().getName(); //the player that went up in ranking
        String surpassedPlayerName = e.getSurpassedPlayer().getName(); //the player who went down in ranking
        String gameName = e.getLeaderboard().getPlugin().getOutgoingGameAlias(e.getLeaderboard().getGameType()); //API example for game type name
           
        String msg = ChatColor.GREEN + playerName + " took 1st place from " + surpassedPlayerName + " in " + gameName + "!";
        Bukkit.broadcastMessage(msg);
    }
}
----------, Apr 9, 2025
Resource Information
Author:
----------
Total Downloads: 420
First Release: May 19, 2023
Last Update: May 2, 2025
Category: ---------------
All-Time Rating:
24 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings