Skip to content

Latest commit

 

History

History
117 lines (87 loc) · 3.99 KB

README_zh-Hant.md

File metadata and controls

117 lines (87 loc) · 3.99 KB

適用於 Spigot 的 PotatoCore

多功能插件。 PotatoCore 可以在 Spigot 或其分支上執行,並在 PaperMC、Debian11 上進行了測試。

中文 (簡體) | [中文 (繁體)] | English

計劃

  • 上線/離線廣播
  • QQ和遊戲聊天轉發訊息
  • 從 QQ 執行指令(僅限管理員)
  • 使用指令重新載入配置文件
  • 每日進度提醒
  • 自助領取補償/福利
  • 定制指令
  • 管理材料倉庫
  • 玩家快遞盒

已知功能

  • 當玩家上線遊戲或者下線遊戲時在群聊內發送訊息提醒
  • 透過關鍵字 # 遊戲內和群聊內所有的訊息都會被互通
  • 管理員透過關鍵字 !# 可以透過QQ群聊在伺服器上執行指令
  • 透過群聊創建日程計劃,並且進行管理,可以設置每日定時發送所有未完成日程

用法

在遊戲中

指令 功能
/ptb reload 重新載入配置文件

在QQ群內

指令 用法 權限
!#ping 檢查伺服器狀態
#[訊息] 轉發訊息到伺服器聊天
添加日程 [日程名稱] [負責人(如果有多人請用 | 分割,如:dmzz|yyhyy] [關聯倉庫(可選)] 添加一項日程
修改日程 [需要修改的日程名稱] [修改後的日程名稱] [修改後的負責人(如果有多人請用 | 分割,如:dmzz|yyhyy)] [修改後的關聯倉庫(可選)] 修改一項已存在的日程內容
完成日程 [完成的日程名稱] 完成一項日程並且刪除該日程

配置文件

config.yml

# Configuration file for PotatoCore
# by yukonisen#QwQ

# When to automatically send the schedule
schedule_timer: "14:51"
# language "zh-cn" “en-us”
language: "zh-cn"

format:

  prefix:
    console: "[PotatoCore]"
    to-mc: "&aPotatoCore &7> "
    to-qq: "[Core]"

potatobotcfg.yml

# Configuration for PotatoBot

qqnumber:

  # Enter the group number where you want to use PTB. (eg. 114514)
  group: 114514
  # Enter the QQ number of the bot (login required, eg. 1919810)
  bot: 1919810
  # Enter the QQ number of the bot operators
  op:
    - "1145141919810"
    - "1145141919810000"

  # These example qq numbers should be long enough to never be real qq numbers

messages:

  # messages when player join or quit server
  player:
    join: "%player% 連接至伺服器"
    quit: "%player% 斷開連接"

權限

權限 注意 默認
potato.admin PotatoCore 管理員 OP

引用

許可證

Copyright (C) 2022 by yukonisen#QwQ <[email protected]>
Copyright (C) 2022 by dmzz-yyhyy <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.