Skip to content

Minecraft Spigot plugin (1.16.5 - 1.20.1) that allows you to play Tic Tac Toe game in inventory-based GUI! Custom messages are supported.

Notifications You must be signed in to change notification settings

MrQuackDuck/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

TicTacToe is a Spigot plugin that allows you to play Tic Tac Toe with your friends in inventory-based GUI.

📷 Screenshots

💻 Commands

  • /ttt info — shows info about commands.
  • /ttt invite <player> — invite a player to play.
  • /ttt accept — accept the invite to play.
  • /ttt reload — reload the config.

🔞 Permissions

  • tictactoe.admin (for operators by default) — Allows to reload the plugin (with /ttt reload)
  • tictactoe.invite (true by default) — Allows a player to invite other players to play (with /ttt invite <player>)
  • tictactoe.accept (true by default) — Allows a player to accept other player's invites (with /ttt accept)

Caution

A player with tictactoe.accept permission set to false won't see incoming play requests.

📄 Default config

items:
  # See full list on https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
  "first": "BLUE_DYE"
  "second": "RED_DYE"

misc:
  # Determines if in chat will appear a message
  # that tells about someone won against someone in Tic Tac Toe
  "broadcastWinEnabled": false

  # Determines if in chat will appear a message
  # that tells about two players had a draw in Tic Tac Toe
  "broadcastDrawEnabled": false

messages:
  "prefix": "&#F0F8FF[TicTacToe] &r"
  "info": "&#318CE7Info:\n
  &#318CE7/ttt invite <Player>&#F0F8FF - invite a player to play tic tac toe\n
  &#318CE7/ttt accept&#F0F8FF - accept play request"
  "broadcast-win-message": "&#318CE7%s won against %s!"
  "broadcast-draw-message": "&#318CE7%s and %s have a draw!"
  "only-players": "&#CF1020Only players can use this command."
  "command-not-found": "&#CF1020Command wasn't found! Maybe you don't have enough permissions?"
  "provide-a-name": "&#CF1020Provide the name of a player to invite!"
  "player-wasnt-found": "&#CF1020Player wasn't found!"
  "cant-send-to-yourself": "&#CF1020You can't send a request to yourself!"
  "receiver-does-not-have-enough-permissions": "&#CF1020This player doesn't have enough permissions to accept your play request!"
  "previous-request-was-deleted": "&#FECB00Your previous request was deleted!"
  "request-sent-successfully": "&#318CE7The request was sent &nsuccessfully&r&#318CE7!"
  "received-a-request": "&#318CE7You have received a request to play from &#F0F8FF%s&#318CE7!\nType &n/ttt accept&r&#318CE7 to accept!"
  "request-to-play-wasnt-found": "&#CF1020The request wasn't found!"
  "request-was-accepted": "&#8EE53FYour play request was accepted!"
  "you-accepted-request": "&#8EE53FYou've accepted the request from %s."
  "you-won": "&#8EE53FYou won the game against &n%s&#8EE53F!"
  "you-lost": "&#CF1020You lost against &n%s&#CF1020!"
  "game-ended-draw": "&#FECB00Game ended draw!"
  "opponent-aborted-game": "&#318CE7Your opponent aborted the game! &#8EE53F&nYou are the winner!"
  "you-aborted-game": "&#CF1020You've aborted the game! You lost."

  # Gui messages (that are shown in game inventory)
  "gui-prefix": "[TTT] "
  "gui-player's-turn": "%s's turn!"
  "gui-draw": "Draw!"
  "gui-player-won": "%s won!"

  # Admin messages
  "plugin-reloaded": "&#318CE7Plugin was reloaded!"
  "failed-to-reload": "&#CF1020Plugin was failed to reload."

☂ Getting started

Important

Before getting started, make sure that the plugin's version is compatible with your server version.

  1. Download the plugin from Releases tab or from Spigot page.
  2. Put downloaded .jar into /plugins folder of your server.
  3. Restart your server or enter reload command.

About

Minecraft Spigot plugin (1.16.5 - 1.20.1) that allows you to play Tic Tac Toe game in inventory-based GUI! Custom messages are supported.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages