/rockpaperscissors
Command to challenge someone to play rock-paper-scissors

🌍 Localization
Pathlocalizations → language.yml → command.rockpaperscissors
rockpaperscissors:
null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This player does not exist"
null_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 not possible"
already: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>You've already made your move"
myself: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>You can't play with yourself"
sender: "<fcolor:1>Now goes <target>"
receiver: "<fcolor:2>✂ <display_name> <fcolor:1>suggested a game of rock-paper-scissors"
format_move: "<fcolor:2>✂ <fcolor:1>Choose your move <fcolor:2><click:run_command:\"/rps <target> rock <uuid>\">[🪨 rock]</click> <click:run_command:\"/rps <target> scissors <uuid>\">[✂ scissors]</click> <click:run_command:\"/rps <target> paper <uuid>\">[🧻 paper]</click>"
format_win: "<color:#98FB98>✂ Winning <display_name>! <b><sender_move></b> on <b><receiver_move></b>"
format_draw: "<color:#98FB98>✂ It's a draw! You both chose <b><move>"
strategies:
paper: "paper"
rock: "rock"
scissors: "scissors"rockpaperscissors:
null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игрок не найден"
null_game: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Этой игры не существует"
wrong_move: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Такой ход невозможен"
already: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Ты уже сходил"
myself: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Ты не можешь играть с самим собой"
sender: "<fcolor:2>✂ <fcolor:1>Теперь ходит <target>"
receiver: "<fcolor:2>✂ <display_name> <fcolor:1>предложил сыграть в камень-ножницы-бумага"
format_move: "<fcolor:2>✂ <fcolor:1>Выбери свой ход <fcolor:2><click:run_command:\"/rps <target> rock <uuid>\">[🪨 камень]</click> <click:run_command:\"/rps <target> scissors <uuid>\">[✂ ножницы]</click> <click:run_command:\"/rps <target> paper <uuid>\">[🧻 бумага]</click>"
format_win: "<color:#98FB98>✂ Выиграл <display_name>! <b><sender_move></b> на <b><receiver_move></b>"
format_draw: "<color:#98FB98>✂ Ничья! Вы оба выбрали <b><move>"
strategies:
paper: "бумага"
rock: "камень"
scissors: "ножницы"null_player
Message if the entered player is not found
null_game
Message if the game does not exist
wrong_move
Message for an impossible move
already
Message if the player has already made a move
myself
Message if a player tries to play with themselves
sender
Message for the sender
receiver
Message for the receiver
format_move
Message when a move is made
format_win
Message upon winning
forma_draw
Message upon a draw
strategies
List of strategies and their names
⚙️ Setting
Pathcommand.yml → rockpaperscissors
rockpaperscissors:
enable: true
aliases:
- "rockpaperscissors"
- "rps"
strategies:
rock:
- "scissors"
paper:
- "rock"
scissors:
- "paper"
cooldown:
enable: false
sound:
enable: falseenable
Enables or disables the functionality of the module
aliases
A list of aliases for using the command
For example newcommand, newcommand_ru, ban, me etc.
strategy
Strategies where the key is the winner over the value
Then I should write
scissors:
- "paper"There can be multiple values, i.e.
scissors:
- "paper"
- "newitem"You can create your own keys and values
customvalue:
- "customobject"cooldown
Usage delay
sound
Sound playback
🔐 Permissions
Pathpermission.yml → command.rockpaperscissors
rockpaperscissors:
name: "flectonepulse.module.command.rockpaperscissors"
type: "TRUE"
cooldown_bypass:
name: "flectonepulse.module.command.rockpaperscissors.cooldown.bypass"
type: "OP"
sound:
name: "flectonepulse.module.command.rockpaperscissors.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
Last updated on
Edit on GitHub
FlectonePulse