Tags
Creators
Details
5.4.0
Compatibility
Changes
v5.4.0 โ Private Matches & Direct Challenges
โจ What's new
๐ Private games (/cf private <amount> <password>)
- New command
/coinflip private <amount> <password>to create a password-protected game.
Private games do not appear in the public join GUI menu โ they are invisible to other players.
- To join a private game, the player must use
/cf join <id>and enter the correct password. - If the password is incorrect, an error message is sent (
game.join.wrong-password).
The password is displayed to the creator in the confirmation message.
โ๏ธ Direct challenges (/cf challenge <player> <amount>)
- New command
/coinflip challenge <player> <amount>to challenge a player online directly. - The stake is immediately withdrawn from the challenger when the challenge is sent.
The targeted player receives an in-game notification with the commands /cf accept and /cf decline.
- Response timeout configurable via
game.challenge-timeout-secondsinconfig.yml(default: 60 seconds). - If the deadline expires โ automatic reimbursement of the challenger, notification to both players.
If the targeted player disconnects โ automatic refund from the challenger.
- If the targeted player does not have enough money to accept โ challenger refund.
- A challenger can only send one challenge at a time.
- A player can only receive one challenge at a time.
Challenge matches are invisible in the public GUI (like private matches).
๐ New orders
| Order | Description |
|---|---|
/cf private <amount> <password> |
Creates a private protected part |
/cf challenge <player> <amount> |
Challenge a player directly |
/cf accepted |
Accept a challenge received |
/cf decline |
Refuse a challenge received |
๐ Config files updated
config.yml
game:
challenge-timeout-seconds: 60 # new
messages.yml โ new keys added:
game.create.private-successgame.join.wrong-passwordgame.join.not-invitedchallenge.sentchallenge.receivedchallenge. declined-challengerchallenge.declined-targetchallenge.expired-challengerchallenge.expired-targetchallenge.target-offlinechallenge.target-not-foundchallenge.target-busychallenge.target-no-moneychallenge.cannot-challenge-selfchallenge.already-sentchallenge.no-pending
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:JkR9vvuk:a0A3EqxL"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:JkR9vvuk:a0A3EqxL"
}

