GamblingDisplay

public class GamblingDisplay

Shared display, sound, and message utilities for all gambling games.

Constructors

Link copied to clipboard
public void GamblingDisplay()

Functions

Link copied to clipboard
public static String formatCurrency(double amount)
Formats a currency amount to 2 decimal places.
Link copied to clipboard
public static void playBigWinSound(Player player)
Plays the big win sound (jackpot, blackjack, edge, max streak).
Link copied to clipboard
public static void playLoseSound(Player player)
Plays the lose sound.
Link copied to clipboard
public static void playWinSound(Player player)
Plays the standard win sound.
Link copied to clipboard
public static void sendLoseMessage(Player player, int betAmount, String gameName)
Sends the configured lose message to the player.
Link copied to clipboard
public static void sendWinMessage(Player player, double amount, String gameName)
Sends the configured win message to the player.
Link copied to clipboard
public static Player validateClick(InventoryClickEvent event, Set<Inventory> menus)
Validates a click event for a gambling menu.