LobbyGames ✅ High Quality Minigames ⭕ 100% Customizable ⚡ Increase Player Retention

MC Plugin LobbyGames ✅ High Quality Minigames ⭕ 100% Customizable ⚡ Increase Player Retention 2.3.0
Create Pool Tables, Soccer / Football, Connect 4, Snake, 2048, Minesweeper, Tic Tac Toe, and more!

- Made the 1's in Sudoku be purple and 2's be dark blue so that the colors look more distinct. All the other colors are the same.
- Fixed a bug where the server might make infinite tries to load an arena if it can't correctly find the world, such as if the world was renamed offline or no longer exists. It will now ignore the world and send a warning in the console if it can not find the world the arena is in.
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:
@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);
    }
}
- If an admin does /papi reload, you can now use /lg reload to re-register the LobbyGames PAPI placeholder hook.
- Fixed a bug in spleef where spectators would not lose their invisibility in some cases when the game ends.
- Fixed a bug in spleef where the eliminated player message would not run if a player in the game disconnected.
- Added command tab-complete for /lg delete arena ids.
- When a player pockets all of the balls in pool, they will now receive a more specific message to clarify why the game (or practice game) ended.

This update adds the following to the config:
Code:
pool: #add the indented line to the pool section
  pocketed-all-balls: "&aAll balls were pocketed!"
- Fixed a bug in Connect 4 where particles caused an error in servers running any Minecraft version before 1.13 (legacy versions).
- Adjusted the priority of particular LobbyGames events to allow for compatibility with plugins that check the player's inventory when they log out of the server. If they log out while playing a lobby game, the other plugins should see the player's normal inventory and not the inventory given from the lobby game.
- Fixed a bug where particles in Connect4 could be created incorrectly depending on the rotation of the arena.
- If a player enters a spleef arena, any passenger players who are sitting on them will be dismounted.
Top Bottom