/minesweeper
Command to play Minesweeper

You can create a game with custom parameters (all optional): /minesweeper create <rows> <columns> <mines> <seed>
To place a flag, you need to enable flag mode by clicking the corresponding symbol. After that, each move will count as placing a flag. To exit flag mode, click the corresponding symbol again
Localization
Pathlocalizations → language.yml → command.minesweeper
minesweeper:
wrong_parameters: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Нельзя создать игру с такими параметрами"
wrong_game: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Этой игры не существует"
wrong_move: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Такой ход невозможен"
cell:
unknown: "<fcolor:1><hover:show_text:\"<fcolor:1>Ход <row> <column>\"><click:run_command:\"<command> move <row> <column>\">⓪</click></hover>"
flag: "<color:#ffb74d><hover:show_text:\"<color:#ffb74d>Снять флаг <row> <column>\"><click:run_command:\"<command> move <row> <column>\">⓪</click></hover>"
mine: "<color:#ff7171>⓪"
number_0: "<color:#c8ccd4>⓪"
number_1: "<color:#5b9bd5>①"
number_2: "<color:#6aab73>②"
number_3: "<color:#3cc4b0>③"
number_4: "<color:#7b6fbe>④"
number_5: "<color:#b05279>⑤"
number_6: "<color:#5599b0>⑥"
number_7: "<color:#6b7c8a>⑦"
number_8: "<color:#9ba0a8>⑧"
line: "<padding:3><fcolor:1>| <line> <fcolor:1>|<br>"
flag_enabled: "<hover:show_text:\"<color:#ffb74d>Нажми, чтобы ставить флаги\"><click:run_command:\"<command> flag\"><color:#ffb74d>⚑</color:#ffb74d></click></hover>"
flag_disabled: "<hover:show_text:\"<color:#ffb74d>Нажми, чтобы перестать ставить флаги\"><click:run_command:\"<command> flag\"><color:#ffb74d>⚐</color:#ffb74d></click></hover>"
seed: "<hover:show_text:\"<fcolor:1>Прошлый ход → <row> <column><br>Нажми, чтобы скопировать сид\"><click:copy_to_clipboard:'<seed>'><fcolor:2>🔑</click></hover>"
format_start: "<br><padding:5><seed> <fcolor:2>Сапёр</fcolor> <color:#ff7171>💣 <remaining></color> <flag><br><br><field>"
format_move: "<br><padding:5><seed> <fcolor:2>Сапёр</fcolor> <color:#ff7171>💣 <remaining></color> <flag><br><br><field>"
format_win: "<padding:5><seed> <color:#98FB98>Победа!</color> <color:#ff7171>💣 <remaining></color> <flag><br><br><field>"
format_lose: "<padding:3><seed> <color:#ff7171>Поражение!</color> <color:#ff7171>💣 <remaining></color> <flag><br><br><field>"minesweeper:
wrong_parameters: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Cannot create a game with these parameters"
wrong_game: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This game does not exist"
wrong_move: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This move is impossible"
cell:
unknown: "<fcolor:1><hover:show_text:\"<fcolor:1>Move <row> <column>\"><click:run_command:\"<command> move <row> <column>\">⓪</click></hover>"
flag: "<color:#ffb74d><hover:show_text:\"<color:#ffb74d>Remove flag <row> <column>\"><click:run_command:\"<command> move <row> <column>\">⓪</click></hover>"
mine: "<color:#ff7171>⓪"
number_0: "<color:#c8ccd4>⓪"
number_1: "<color:#5b9bd5>①"
number_2: "<color:#6aab73>②"
number_3: "<color:#3cc4b0>③"
number_4: "<color:#7b6fbe>④"
number_5: "<color:#b05279>⑤"
number_6: "<color:#5599b0>⑥"
number_7: "<color:#6b7c8a>⑦"
number_8: "<color:#9ba0a8>⑧"
line: "<padding:3><fcolor:1>| <line> <fcolor:1>|<br>"
flag_enabled: "<hover:show_text:\"<color:#ffb74d>Click to place flags\"><click:run_command:\"<command> flag\"><color:#ffb74d>⚑</color:#ffb74d></click></hover>"
flag_disabled: "<hover:show_text:\"<color:#ffb74d>Click to stop placing flags\"><click:run_command:\"<command> flag\"><color:#ffb74d>⚐</color:#ffb74d></click></hover>"
seed: "<hover:show_text:\"<fcolor:1>Last move → <row> <column><br>Click to copy seed\"><click:copy_to_clipboard:'<seed>'><fcolor:2>🔑</click></hover>"
format_start: "<br><padding:2><seed> <fcolor:2>Minesweeper</fcolor> <color:#ff7171>💣 <remaining></color> <flag><br><br><field>"
format_move: "<br><padding:2><seed> <fcolor:2>Minesweeper</fcolor> <color:#ff7171>💣 <remaining></color> <flag><br><br><field>"
format_win: "<padding:5><seed> <color:#98FB98>Victory!</color> <color:#ff7171>💣 <remaining></color> <flag><br><br><field>"
format_lose: "<padding:5><seed> <color:#ff7171>Defeat!</color> <color:#ff7171>💣 <remaining></color> <flag><br><br><field>"wrong_parameters
Message shown when incorrect game parameters are entered. Numbers too large or negative
wrong_game
Message shown when a player tries to play a game that no longer exists
wrong_move
Message shown when a player makes a move with impossible parameters
cell
line
Format for each field line
flag_enabled
Format for the indicator showing flag mode is currently enabled
flag_disabled
Format for the indicator showing flag mode is currently disabled
format_start
Message when a new game starts
format_move
Message on each player move
format_win
Message when the player wins
format_lose
Message when the player loses
Setting
Pathcommand.yml → minesweeper
minesweeper:
enable: true
max_row: 9
max_column: 9
default_mine: 10
aliases:
- "minesweeper"
cooldown:
enable: false
sound:
enable: falseenable
Enables or disables the functionality of the module
max_row
Setting too large a value is not recommended, the server will take a long time to process it
Maximum number of rows for creating the game field. Used as the default value if not specified in /minesweeper create
max_column
Setting too large a value is not recommended, the server will take a long time to process it
Maximum number of columns for creating the game field. Used as the default value if not specified in /minesweeper create
default_mine
Maximum number of mines in the game. Used as the default value if not specified in /minesweeper create
aliases
A list of aliases for using the command
Aliases can be anything. For example newcommand, newcommand_ru, ban, me etc.
cooldown
Usage delay
sound
Sound playback
Permissions
Pathpermission.yml → command.minesweeper
minesweeper:
name: "flectonepulse.module.command.minesweeper"
type: "TRUE"
cooldown_bypass:
name: "flectonepulse.module.command.minesweeper.cooldown.bypass"
type: "OP"
sound:
name: "flectonepulse.module.command.minesweeper.sound"
type: "TRUE"name
Permission name
type
Permission type
| Type | Explanation |
|---|---|
TRUE | Available to any player |
FALSE | Available to no one, must be granted separately (e.g., using LuckPerms) |
OP | Available to server operators |
NOT_OP | Available to NON-operators of the server |
cooldown_bypass
Permission to ignore the cooldown between uses
sound
Permission to use the sound
FlectonePulse