Flectone Logo FlectonePulse

/tictactoe

Command to challenge someone to play tic-tac-toe

command tictactoe

By default, a request is sent for Chinese tic-tac-toe; if you want to play the standard version, use /tictactoe nick false command tictactoe default

Rules of Chinese tic-tac-toe

  1. Each player can only place 3 of their marks.
  2. If the game hasn't ended, the first mark placed by the player is removed and a new one is placed.
  3. This continues in a cycle until the game is over.

As a result, the game becomes complex and strategic!


🌍 Localization

Path localizations → language.yml → command.tictactoe
tictactoe:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This player does not exist"
  myself: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>You can't play with yourself"
  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 step is not possible"
  wrong_by_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This game ended because player quit"
  symbol:
    blank: "<fcolor:1><hover:show_text:\"<fcolor:1>Move <move>\"><click:run_command:\"/tictactoemove %d <move>\">☐</click></hover>"
    first: "<fcolor:2>☑"
    first_remove: "<color:#ff7171>☑</color:#ff7171>"
    first_win: "<color:#98FB98>☑</color:#98FB98>"
    second: "<fcolor:2>☒"
    second_remove: "<color:#ff7171>☒</color:#ff7171>"
    second_win: "<color:#98FB98>☒</color:#98FB98>"
  field: "<fcolor:1><br>|[#][#][#]<fcolor:1>| <title> <current_move> <br><fcolor:1>|[#][#][#]<fcolor:1>| <br>|[#][#][#]<fcolor:1>| <last_move><br>"
  current_move: "<fcolor:2>☐ → <symbol>"
  last_move: "<fcolor:2>Last move (<move>)"
  format_move: "<fcolor:2><target>'s move"
  format_win: "<color:#98FB98><target> won this game</color:#98FB98>"
  format_draw: "<color:#98FB98>The game ended in a draw 👬</color:#98FB98>"
  sender: "<fcolor:1>☐ An offer to play was sent to <target>"
  receiver: "<click:run_command:\"/tictactoemove %d create\"><fcolor:1>☐ Received an invite to play tic-tac-toe with <display_name>, accept? [+]"
tictactoe:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игрок не найден"
  myself: "<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>Такой ход невозможен"
  wrong_by_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игра закончена, потому что один из игроков не в сети"
  symbol:
    blank: "<fcolor:1><hover:show_text:\"<fcolor:1>Ход <move>\"><click:run_command:\"/tictactoemove %d <move>\">☐</click></hover>"
    first: "<fcolor:2>☑"
    first_remove: "<color:#ff7171>☑</color:#ff7171>"
    first_win: "<color:#98FB98>☑</color:#98FB98>"
    second: "<fcolor:2>☒"
    second_remove: "<color:#ff7171>☒</color:#ff7171>"
    second_win: "<color:#98FB98>☒</color:#98FB98>"
  field: "<fcolor:1><br>|[#][#][#]<fcolor:1>| <title> <current_move> <br><fcolor:1>|[#][#][#]<fcolor:1>| <br>|[#][#][#]<fcolor:1>| <last_move><br>"
  current_move: "<fcolor:2>☐ → <symbol>"
  last_move: "<fcolor:2>Последний ход (<move>)"
  format_move: "<fcolor:2>Ход <target> "
  format_win: "<color:#98FB98><target> выиграл</color:#98FB98>"
  format_draw: "<color:#98FB98>Ничья 👬</color:#98FB98>"
  sender: "<fcolor:1>☐ Предложение сыграть в крестики-нолики отправлено для <target>"
  receiver: "<click:run_command:\"/tictactoemove %d create\"><fcolor:1>☐ Есть предложение сыграть в крестики-нолики от <display_name>, принять? [+]"

null_player

Message if the entered player is not found

myself

Message if the entered player tries to play with themselves

wrong_game

Message if the specified game does not exist

wrong_move

Message if the move is impossible

wrong_by_player

Message if one of the players involved in the game has left

symbol

field

Message format for the game field

current_move

Message format for information about the current turn

last_move

Message format for information about the previous turn

format_move

Message format for turn notification

format_win

Message upon victory

format_draw

Message upon a draw

sender

Message for the sender upon request

format_create

Message for the receiver upon request


⚙️ Setting

Path command.yml → tictactoe
tictactoe:
  enable: true
  aliases:
  - "tictactoe"
  - "ttt"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

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

Path permission.yml → command.tictactoe
tictactoe:
  name: "flectonepulse.module.command.tictactoe"
  type: "TRUE"
  cooldown_bypass:
    name: "flectonepulse.module.command.tictactoe.cooldown.bypass"
    type: "OP"
  sound:
    name: "flectonepulse.module.command.tictactoe.sound"
    type: "TRUE"

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSEAvailable to no one, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable 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

On this page

Authors of page