The plugin adds a Guess the Number chat game.
- In the game, players need to guess the number that the plugin chose randomly.
- When the game starts, it will display a start message in the chat.
- Players can place only one bet per game.
- Players can bet on the same number.
- When the game ends, the winners will be chosen, if no one guessed, it will show that no one guessed.
- If the player or players guess, they will be awarded in game currency
- All messages are configured in the configuration file of the plugin - config.yml.
- You can configure all game settings in the configuration file - config.yml.
Preview
Spoiler: Win
Spoiler: Lose
Spoiler: Top
Commands
- /bet (number) - Place a bet on a number.
- /chatgames top - Lists the top 10 players in terms of wins in the game.
- /chatgame reload - Reloads the plugin configuration.
Permissions
- chatgames.command.bet - Permission to use the /bet command.
- chatgames.command.top - Permission to use the /chatgames top command.
- chatgames.command.reload - Permission to use the /chatgames reload command.
Placeholders
- %chatgames_wins% - Returns the number of wins in the game.
- %chatgames_wins_(player)% - Returns the number of game wins for the specified player.
Dependencies
- Vault <- CLICK
- PlaceholderAPI <- CLICK
Here you can customize the game
Spoiler: config.yml
# ChatGames by Woody Configuration File
#########################################
## Game Settings ##
#########################################
games:
numbers-game :
# Minimum number for the game
minNumber : 1
# Maximum number for the game
maxNumber : 30
# Minimum number of players to start the game
minPlayersToStartGame : 1
# Duration of each game in seconds
gameDuration : 60
# Delay between game repetitions in seconds
repeatDelay : 600
# Minimum reward for the winner
minReward : 200.0
# Maximum reward for the winner
maxReward : 500.0
# Bet cost
betCost : 25.0
#########################################
## Messages ##
#########################################
messages:
numbers-game :
# Message displayed at the start of the game
gameStartMessage : "\n&e&lChat Game &8| &bGuess the number between &f{minNumber} &band &f{maxNumber}&b! &7/bet (number)\n"
# Message displayed when a player wins
playerWinMessage : "\n&e&lChat Game &8| &aCongratulations! &e{winners} &awon the game with the number &f{number} &aand received &f${reward} &acoins!\n"
# Message displayed when there is no winner in the game
noWinnerMessage : "\n&e&lChat Game &8| &7No one won the game. The number was &f{number}&7.\n"
# Message displayed when a player places a bet
betPlacedMessage : "\n&e&lChat Game &8| &6Your bet &8(&f{betNumber}&8) &6has been placed! &7Deducted: &f${cost}\n"
# Message displayed when the game has not started yet and a player tries to place a bet
gameNotStartedMessage : "\n&e&lChat Game &8| &7The game has not started yet...\n"
# Message displayed when a player tries to place a bet without specifying a number
betMissingNumberMessage : "\n&e&lChat Game &8| &7You must specify a number between &f{minNumber} &7and &f{maxNumber}&7.\n"
# Message displayed when a player tries to place a bet with a number outside the valid range
betOutOfRangeMessage : "\n&e&lChat Game &8| &7The number must be between &f{minNumber} &7and &f{maxNumber}&7.\n"
# Message displayed when a player has already placed a bet
alreadyBetMessage : "\n&e&lChat Game &8| &7You have already placed a bet, please wait for the game to finish.\n"
# Message displayed when a player has insufficient funds to place a bet
insufficientFundsMessage : "\n&e&lChat Game &8| &7You have &cinsufficient &7funds to place a bet. You need at least &f${cost}\n"
# Message displayed when a player specifies an invalid number for the bet
invalidBetNumberMessage : "\n&e&lChat Game &8| &7Invalid number for the bet. Please enter a valid number.\n"
# Message displayed when showing the top players
topPlayersTitle : "\n&eTop {count} players by wins:"
topPlayerFormat : "&6{position}. {player}: {wins} wins\n"
noTopPlayers : "&eNo players in the top."
# Plugin messages
plugin :
# Message displayed when the player lacks permission
permission : "\n&cYou do not have sufficient permission to execute this command!"
# Message displayed when reloading the plugin configuration
reloadConfigMessage : "\n&e&lChat Game &8| &aPlugin configuration reloaded."
Code (YAML):
# ChatGames by Woody Configuration File
#########################################
## Game Settings ##
#########################################
games:
numbers-game :
# Minimum number for the game
minNumber : 1
# Maximum number for the game
maxNumber : 30
# Minimum number of players to start the game
minPlayersToStartGame : 1
# Duration of each game in seconds
gameDuration : 60
# Delay between game repetitions in seconds
repeatDelay : 600
# Minimum reward for the winner
minReward : 200.0
# Maximum reward for the winner
maxReward : 500.0
# Bet cost
betCost : 25.0
#########################################
## Messages ##
#########################################
messages:
numbers-game :
# Message displayed at the start of the game
gameStartMessage : "\n&e&lChat Game &8| &bGuess the number between &f{minNumber} &band &f{maxNumber}&b! &7/bet (number)\n"
# Message displayed when a player wins
playerWinMessage : "\n&e&lChat Game &8| &aCongratulations! &e{winners} &awon the game with the number &f{number} &aand received &f${reward} &acoins!\n"
# Message displayed when there is no winner in the game
noWinnerMessage : "\n&e&lChat Game &8| &7No one won the game. The number was &f{number}&7.\n"
# Message displayed when a player places a bet
betPlacedMessage : "\n&e&lChat Game &8| &6Your bet &8(&f{betNumber}&8) &6has been placed! &7Deducted: &f${cost}\n"
# Message displayed when the game has not started yet and a player tries to place a bet
gameNotStartedMessage : "\n&e&lChat Game &8| &7The game has not started yet...\n"
# Message displayed when a player tries to place a bet without specifying a number
betMissingNumberMessage : "\n&e&lChat Game &8| &7You must specify a number between &f{minNumber} &7and &f{maxNumber}&7.\n"
# Message displayed when a player tries to place a bet with a number outside the valid range
betOutOfRangeMessage : "\n&e&lChat Game &8| &7The number must be between &f{minNumber} &7and &f{maxNumber}&7.\n"
# Message displayed when a player has already placed a bet
alreadyBetMessage : "\n&e&lChat Game &8| &7You have already placed a bet, please wait for the game to finish.\n"
# Message displayed when a player has insufficient funds to place a bet
insufficientFundsMessage : "\n&e&lChat Game &8| &7You have &cinsufficient &7funds to place a bet. You need at least &f${cost}\n"
# Message displayed when a player specifies an invalid number for the bet
invalidBetNumberMessage : "\n&e&lChat Game &8| &7Invalid number for the bet. Please enter a valid number.\n"
# Message displayed when showing the top players
topPlayersTitle : "\n&eTop {count} players by wins:"
topPlayerFormat : "&6{position}. {player}: {wins} wins\n"
noTopPlayers : "&eNo players in the top."
# Plugin messages
plugin :
# Message displayed when the player lacks permission
permission : "\n&cYou do not have sufficient permission to execute this command!"
# Message displayed when reloading the plugin configuration
reloadConfigMessage : "\n&e&lChat Game &8| &aPlugin configuration reloaded."
Metrics
If you have any questions about the plugin, you can contact me via Discord: woody7574
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.13, 1.14, 1.15
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
⭐ ChatGames ⭐ Chat game for players! | [1.13 x 1.20] is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15, 1.16 and newer. Downloaded 441 times (via Spigot). Download it and open it directly in the game.