TicTacToe 是一个插件,允许你通过基于库存的图形用户界面与朋友一起玩 井字棋。
? 截图
? 命令
/ttt info — 显示有关命令的信息。
/ttt invite <玩家> — 邀请一名玩家加入游戏。
/ttt accept — 接受游戏邀请。
/ttt reload — 重新加载配置文件。
? 权限
tictactoe.admin (默认仅对 管理员 开放) — 允许重载插件(通过 /ttt reload)
tictactoe.invite (true 为默认值) — 允许玩家邀请其他玩家加入游戏(通过 /ttt invite <player>)
tictactoe.accept (true 为默认值) — 允许玩家接受其他玩家的邀请(通过 /ttt accept)
[!CAUTION]
如果玩家的 tictactoe.accept 权限被设置为 false,他们将看不到收到的游戏请求。
? 默认配置文件
items:
# 完整列表请参阅 https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
"first": "BLUE_DYE"
"second": "WHITE_DYE"
misc:
# 决定是否为获胜者生成烟花
"spawnFireworkForWinner": true
# 确定是否在聊天中显示一条消息
# 告知某人在井字棋中战胜了某人
"broadcastWinEnabled": false
# 确定是否在聊天中显示一条消息
# 告知两名玩家在井字棋中战平
"broadcastDrawEnabled": false
messages:
"prefix": "&#F0F8FF[TicTacToe] &r"
"info": "ľCE7信息:\n
ľCE7/ttt invite <Player>&#F0F8FF - 邀请玩家玩井字棋\n
ľCE7/ttt accept&#F0F8FF - 接受游戏请求"
"broadcast-win-message": "ľCE7%s 击败了 %s!"
"broadcast-draw-message": "ľCE7%s 和 %s 平局!"
"only-players": "&#CF1020只有玩家才能使用此命令。"
"command-not-found": "&#CF1020未找到该命令!可能是权限不足?"
"provide-a-name": "&#CF1020请提供要邀请的玩家名称!"
"player-wasnt-found": "&#CF1020未找到该玩家!"
"cant-send-to-yourself": "&#CF1020你不能向自己发送请求!"
"receiver-does-not-have-enough-permissions": "&#CF1020该玩家没有足够的权限来接受你的游戏请求!"
"previous-request-was-deleted": "&#FECB00你之前的请求已被删除!"
"request-sent-successfully": "ľCE7请求已&n成功&rľCE7发送!"
"received-a-request": "ľCE7你收到了来自 &#F0F8FF%sľCE7 的游戏邀请!\n输入 &n/ttt accept&rľCE7 以接受邀请!"
"request-to-play-wasnt-found": "&#CF1020未找到该游戏邀请!"
"request-was-accepted": "EE53F你的游戏邀请已被接受!"
"you-accepted-request": "EE53F你已接受了来自 %s 的邀请。"
"you-won": "EE53F你击败了 &n%sEE53F,赢得了比赛!"
"you-lost": "&#CF1020你输给了 &n%s&#CF1020!"
"game-ended-draw": "&#FECB00比赛以平局结束!"
"opponent-aborted-game": "ľCE7你的对手中止了游戏!EE53F&n你是获胜者!"
"you-aborted-game": "&#CF1020你中止了游戏!你输了。"
# 游戏内库存中显示的界面消息
"gui-prefix": "[TTT] "
"gui-player's-turn": "%s 的回合!"
"gui-draw": "平局!"
"gui-player-won": "%s 获胜!"
# 管理员消息
"plugin-reloaded": "ľCE7插件已重新加载!"
"failed-to-reload": "&#CF1020插件重新加载失败。"
☂ 入门指南
[重要] 在开始之前,请确保该插件的版本与你的服务器版本兼容。
- 从 Releases 选项卡或 Modrinth 页面下载该插件。
- 将下载的
.jar 文件放入服务器的 /plugins 文件夹中。
- 重启服务器或输入
reload 命令。
TicTacToe is a plugin that allows you to play Tic Tac Toe with your friends in an 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": "WHITE_DYE"
misc:
# Determines if a firework will be spawned
# for winner
"spawnFireworkForWinner": true
# 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": "ľCE7Info:\n
ľCE7/ttt invite <Player>&#F0F8FF - invite a player to play tic tac toe\n
ľCE7/ttt accept&#F0F8FF - accept play request"
"broadcast-win-message": "ľCE7%s won against %s!"
"broadcast-draw-message": "ľCE7%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": "ľCE7The request was sent &nsuccessfully&rľCE7!"
"received-a-request": "ľCE7You have received a request to play from &#F0F8FF%sľCE7!\nType &n/ttt accept&rľCE7 to accept!"
"request-to-play-wasnt-found": "&#CF1020The request wasn't found!"
"request-was-accepted": "EE53FYour play request was accepted!"
"you-accepted-request": "EE53FYou've accepted the request from %s."
"you-won": "EE53FYou won the game against &n%sEE53F!"
"you-lost": "&#CF1020You lost against &n%s&#CF1020!"
"game-ended-draw": "&#FECB00Game ended draw!"
"opponent-aborted-game": "ľCE7Your opponent aborted the game! EE53F&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": "ľCE7Plugin 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.
- Download the plugin from Releases tab or from Modrinth page.
- Put the downloaded
.jar into /plugins folder of your server.
- Restart your server or enter the
reload command.
评论 0
登录后参与评分
还没有评论,来抢沙发吧