ScratchOffs brings the fun of scratch tickets to your server economy. Players purchase tickets, scratch areas to reveal potential prizes, and can win rewards of varying values. The plugin features multiple ticket types, a jackpot system, and an interactive UI.
Features
Multiple scratch ticket types with different costs and prize ranges
Interactive 3x3 scratch grid with revealing animations
Progressive jackpot that builds with each play
Configurable win chances for each ticket type
Small prizes based on number of gold areas revealed
Economy integration for purchases and rewards (You need Vault + Economy Plugin like EssentialsX)
Win animations and sound effects
Player statistics tracking
Commands
/so - Main command alias
/so help - Help command
/so buy <type> - Purchase a specific scratch ticket
/so list - View available ticket types and prices
/so jackpot - Check current jackpot amount
/so broadcast - Manually trigger a jackpot broadcast
and more..
Permissions
scratchoffs.use - Access to basic plugin functions
scratchoffs.buy - Permission to purchase tickets
scratchoffs.jackpot - Permission to check jackpot amount
scratchoffs.admin - Access to administrative functions
Configuration
Ticket costs and prize ranges
Win probabilities for each ticket type
Jackpot starting amount and increment value
Small prize calculation based on gold areas
Game cooldown settings
Animation and sound settings
Code (YAML):
# ScratchOffs Configuration settings:
prefix: '&8
[&6ScratchOffs&8
] &r'
scratch_mode: 'ANIMATION'
# ANIMATION or INSTANT scratch_animation_speed: 2
# 1-5, higher is faster win_sound_enabled: true
jackpot_broadcast_enabled: true
enable_statistics: true
game_cooldown: 30
# Cooldown in seconds between games (0 to disable) confirm_expensive_purchases: true
# Require confirmation for expensive tickets expensive_threshold: 500.0
# Price threshold for confirmation auto_broadcast_jackpot: true
# Broadcast jackpot amount periodically jackpot_broadcast_interval: 30
# Minutes between jackpot broadcasts small_prizes_enabled: true
# Enable small prizes based on gold patterns small_prizes:
min_gold_for_prize: 3
# Minimum gold areas to qualify for a small prize prize_multipliers: # Multipliers for ticket cost based on gold areas 3-4: 0.5
# 3-4 gold areas gives 50% of ticket cost 5-6: 0.75
# 5-6 gold areas gives 75% of ticket cost 7-8: 1.0
# 7-8 gold areas gives 100% of ticket cost (break even) 9: 1.5
# All 9 areas gold gives 150% of ticket cost games:
basic:
displayName: '&6Basic Scratch-Off'
description: '&7A simple scratch-off game with small prizes.'
cost: 100.0
min_win: 50.0
max_win: 200.0
win_chance: 0.3
# 30% chance to win lucky:
displayName: '&bLucky Scratch-Off'
description: '&7Try your luck with medium prizes.'
cost: 250.0
min_win: 100.0
max_win: 500.0
win_chance: 0.25
# 25% chance to win premium:
displayName: '&dPremium Scratch-Off'
description: '&7High risk, high reward scratch-off.'
cost: 500.0
min_win: 200.0
max_win: 1000.0
win_chance: 0.2
# 20% chance to win jackpot:
displayName: '&eJackpot Scratch-Off'
description: '&7Chance to win the progressive jackpot!'
cost: 1000.0
min_win: 500.0
max_win: 2000.0
jackpot_chance: 0.01
# 1% chance to win jackpot starting_jackpot: 5000.0
jackpot_increment: 100.0
# Amount added to jackpot per play win_chance: 0.15
# 15% chance to win (non-jackpot prize) bonus:
displayName: '&aBonusRound Scratch-Off'
description: '&7Scratch for a chance at bonus rounds!'
cost: 750.0
min_win: 300.0
max_win: 1500.0
bonus_chance: 0.2
# 20% chance to get bonus round bonus_multiplier_min: 1.5
bonus_multiplier_max: 3.0
win_chance: 0.22
# 22% chance to win initial prize