# Table of Contents - [插件委託 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [設定 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [類型 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [通用動作 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [委託須知 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [基礎 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [格式化文字 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [TJAction | TJService Less Cost & More Power](#tjaction-tjservice-less-cost-more-power) - [YAML語法 | TJService Less Cost & More Power](#yaml-tjservice-less-cost-more-power) - [簡易運算式 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [Spigot | TJService Less Cost & More Power](#spigot-tjservice-less-cost-more-power) - [SimpleDatabase | TJService Less Cost & More Power](#simpledatabase-tjservice-less-cost-more-power) - [時代的眼淚 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [FAQ | TJService Less Cost & More Power](#faq-tjservice-less-cost-more-power) - [IDisplay | TJService Less Cost & More Power](#idisplay-tjservice-less-cost-more-power) - [常見依賴 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) - [TJMessage | TJService Less Cost & More Power](#tjmessage-tjservice-less-cost-more-power) - [服務條款 | TJService Less Cost & More Power](#-tjservice-less-cost-more-power) --- # 插件委託 | TJService Less Cost & More Power [委託須知](http://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi) [設定](http://docs.tjservice.org/cha-jian-wei-tuo/she-ding) [常見依賴](http://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai) [FAQ](http://docs.tjservice.org/cha-jian-wei-tuo/faq) [Next委託須知](http://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi) Last updated 0 minutes ago --- # 設定 | TJService Less Cost & More Power [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding#ye-xu-ni-xiang-xian-liao-jie-ji-chu) 也許,你想先了解基礎? ------------------------------------------------------------------------------------------------------------- [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding#lei-bie) 類別 ------------------------------------------------------------------------ [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/ge-shi-hua-wen-zi) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding#ge-shi-hua-wen-zi) 格式化文字 ------------------------------------------------------------------------------------- [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/yaml-yu-fa) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding#jin-jie-yaml-yu-fa) 進階YAML語法 ----------------------------------------------------------------------------------------- [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding#wu-jian-lei-xing-bu-bao-han-quan-bu) 物件類型(不包含全部) ------------------------------------------------------------------------------------------------------------- [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding#tjaction) TJAction ------------------------------------------------------------------------------- [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/idisplay) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding#idisplay) IDisplay ------------------------------------------------------------------------------- [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding#shi-dai-de-yan-lei) 時代的眼淚 -------------------------------------------------------------------------------------- [Previous委託須知](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi) [Next基礎](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu) Last updated 6 months ago --- # 類型 | TJService Less Cost & More Power > 假如一個物件被標示為 #, > > 表示需要特定B種類的A __ 需要一個物件清單,而清單內的物件類型為訊息。 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing#map-yi-dui-yi-de-biao) Map 一對一的表 ------------------------------------------------------------------------------------------------------------- 空物件: Copy key: {} Copy key: a: 1 b: 2 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing#list-qing-dan) List 清單 --------------------------------------------------------------------------------------------------- 空清單: Copy key: [] Copy key: - a - b - c [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing#string-zi-chuan) String 字串 ------------------------------------------------------------------------------------------------------- key: "abc" 關於多行文字的用法,請參考 [https://yaml-multiline.info](https://yaml-multiline.info/) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing#boolean-shi-huo-fou) Boolean 是或否 ------------------------------------------------------------------------------------------------------------- key: true/false [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing#number-shu-zi) Number 數字 ----------------------------------------------------------------------------------------------------- key: 123 [Previous基礎](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu) [Next格式化文字](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/ge-shi-hua-wen-zi) Last updated 1 year ago --- # 通用動作 | TJService Less Cost & More Power Delay[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#delay) _延遲執行動作_ Copy action: +: TJAction delay_1: message: 'wtf' # 此訊息將在 10 秒後才發送 delay: '10s' Group[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#group) _打包動作成為動作組,建議配合其他動作使用。_ Copy action: +: TJAction random_1: message_1: '&c你沒抽中 :(' group_1: message_1: '&a恭喜獲得 &b鑽石 &fx10&a!' console_1: 'give %player_name% diamond 10' If[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#if) _如果?_ Copy action: +: TJAction if_1: condition: hasperm_1: 'hello.world' n: message: '&c你沒有 hello.world 權限' y: message: 'Hello World!' Copy action: +: TJAction if_1: expr: '%player_y% > 63 and %player_level% >= 10' # 簡易運算式 y: message: '&b你在海平面上且你有 10 等!' n: message: '&c你在海平面下或未達 10 等!' Loop[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#loop) _來點重複的樂趣?_ Copy action: +: TJAction loop_1: time: '3' # 此參數接受運算式,故 '' 不可缺少。 message: '&e我會跑三次。' Random[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#random) _多選N?_ Copy action: +: TJAction random_1: amount: 1 # (選出結果的數量,選填) message_1: '&a我是一號。' message_2: '&e我是二號。' message_3: '&c我是三號。' Set[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#set) _設定參數為運算式結果(請見 If)。_ **變數僅存在記憶體,重啟會消失。** Copy action: +: TJAction set_1: id: 'hello' expr: '%player_y% > 63' keep: false # 是否只在不存在時設定,(選填) if_1: expr: '{hello}' # 使用 "{變數名}" 存取自訂變數 y: message: '&b你在海平面上!' n: message: '&c你不在海平面上!' HasPerm[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#hasperm) 權限檢查,回傳是否有權限 Copy action: +: TJAction if_1: condition: hasperm_1: 'hello.world' n: message: '&c你沒有 hello.world 權限' y: message: 'Hello World!' And[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#and) 與運算 Copy action: +: TJAction if_1: condition: and_1: hasperm_1: 'hello.world' hasperm_2: 'goodbye.world' y: message: 'Hello World!' message_1: 'Goodbye World!' n: message: '&c你沒有 hello.world + goodbye.world 權限' Or[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#or) 或運算 Copy action: +: TJAction if_1: condition: or_1: hasperm_1: 'hello.world' hasperm_2: 'hello_world' y: message: 'Hello World!' n: message: '&c你沒有 hello.world 或 hello_world 權限' Check[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#check) 多重檢查 Copy action: +: TJAction check: conditions: - condition: 3 > 1 success: '好耶,3 > 1' fail: '&c這不太可能發生@@?' - condition: not: '%player_health% > 10' fail: '你血量太多了...' success: # 所有檢查通過 message: '&aOk' console: 'give %this% golden_apple' fail: # 任一檢查失敗,可不寫 message: '&cFail' Broadcast[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#broadcast) 將動作委託給所有玩家 Copy action: +: TJAction broadcast: message: '現在,大家都知道我很吵了 ><' AsConsole[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo#asconsole) 將動作委託給後台 Copy action: +: TJAction asconsole: message: '後台看到我了??' [PreviousTJAction](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction) [Next簡易運算式](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/jian-yi-yun-suan-shi) Last updated 1 month ago --- # 委託須知 | TJService Less Cost & More Power [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#wei-tuo-xu-zhi-bing-fei-tiao-yue-jin-wei-jian-yi) 委託須知並非條約,僅為建議 ---------------------------------------------------------------------------------------------------------------------------------- 但倘若你不接受我們的建議,我們並不會免費協助修改你未遵循委託須知的部份。 [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#wei-tuo-wen-yao-su) 委託文要素 -------------------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#yi-xia-suo-shu-ru-wei-ming-zhu-bu-de-you-zheng-yi-fu-wu-tiao-kuan-nei-you-ti-ji) \# 以下所述如未明注,不得有爭議(服務條款內有提及) * 版本 (**如未明注,則會自動採用當前時期最多人委託的版本編寫**) * 依賴插件 * 設定檔案架構 (如未明注,則自由發揮) * 委託內容 * 指令 (**如需特殊離線玩家、跨分流玩家支援請標註,否則因架構一律不支援**) * PlaceholderAPI 變數 * 資料庫儲存需求 (**MySQL 儲存不代表可跨分流**) * **插件可否跨分流** * **這段話有些直接但** 如果可以,請順帶打上你的預算,方便我 (如果100塊想委託完整的插件那可以先左轉了,不好意思) 開伺服器本來就該準備資金,Cheap Fast Good 平衡法則, 不會有又便宜、又快、又好的委託服務,因為這種服務只會被濫用 TJService 已經盡力維持平衡,提供 Cheap Fast Good 的委託服務直接拒絕 [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#wei-tuo-zhuan-an-bao-jia-you-xia-lie-duo-zhong-yin-su-jue-ding) 委託專案報價由下列多種因素決定 -------------------------------------------------------------------------------------------------------------------------------------------------- * 需要自訂程度 * 有多語言需求 * **非玩家可視內容翻譯需求** 委託時預設會免費提供近乎所有玩家看的到GUI標題、物品、訊息的修改 但如果是管理員的選單、內容等需要外拉翻譯,則會多收費 * 委託文表達清晰度 * 當前忙碌度 * 委託內部代碼(Spigot/Paper API等外)觸及度 * 版本跨度(最新版或太舊的版本皆會較貴) * API支援度(目前尚未有 Velocity API) * 封包使用度 * 態度(凹價格、態度不佳只會搞的雙方心情不爽) * ... 等等 * * * [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#ni-ke-yi-zuo-de-ji-shi-gai-shan-wei-tuo-wen-biao-da-qing-xi-du) 你可以做的,即是改善委託文表達清晰度 ----------------------------------------------------------------------------------------------------------------------------------------------------- **我相信沒有人喜歡看文言文,我們也一樣。** 良好的表達能力,是現代生活不可或缺的課題,對於委託亦是如此。 [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#xia-lie-shi-yi-xie-ni-ke-yi-zhu-yi-de) 下列是一些你可以注意的 --------------------------------------------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#wei-tuo-wen-wan-zheng-xing) 委託文完整性 * 我們需要一篇完整的文章,所以請不要對話的的格式委託(尤其在 Discord 頻道), 倘若因訊息未明確界定範圍,導致多做或少做了某些部份,請自行負責。 * 請整理成一篇,我們僅會看一最後整理過的委託文,如有爭議則自行負責 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#wei-tuo-wen-zhi-jie-xing) 委託文直接性 * 我們不需要知道你的用途 * 我們只需要知道你要什麼功能,先做什麼後做什麼 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#wen-zhang-shun-xu) 文章順序 * 假定你設定了 A、B、C 三個系統 * 而其中,A需要用到B的內容、B需要用到C的內容 * 委託文順序**請依 C、B、A 從上到下打**,才能確保內容連貫性 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#gui-jie-mian) GUI介面 * 建議使用箱子排,並以文字補述個別按鈕內容 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#config-she-ding-dang-ge-shi) Config設定檔格式 * 如果你有能力,可以直接將期望的 yml 打出來 * 但只是讓我們更好設計,並不會 100% 相符合 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#wen-zhang-ge-shi) 文章格式 * 對於簡單的插件,可以使用簡易的文字表達 * 但當簡單的插件變為複雜的系統, 我們會建議使用 **PDF** 或者是 **Markdown** 等格式語言來明確表達你的需求 * 如有需要,[自行架設的筆記系統](https://note.tjservice.org/) 可供你使用,以 **Markdown** 格式來撰寫委託文 * * * [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#yi-xia-wei-bu-hao-de-wei-tuo-wen-fan-li-jin-tao-lun-nei-rong-bu-jia-hu-le-wei-tuo-yao-su) 以下為不好的委託文範例 (僅討論內容不佳、忽略委託要素) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > ### > > [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#wo-xi-wang-neng-you-yi-ge-suo-ding-wu-pin-bu-hui-diao-luo-de-cha-jian-yin-wei-si-fu-qi-zhi-hou-bu-hu) > > 我希望能有一個鎖定物品不會掉落的插件,因為伺服器之後不會有防噴,玩家死掉後會噴掉所有物品,但希望有插件可以讓玩家使用某些道具,保留某些物品不會掉落,但只有OP可以拿到,然後我們OP在自己拿去販賣給他們 * ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#que-fa-xi-jie-ru-he-suo-ding-wu-pin) 缺乏細節,如何 鎖定物品? * ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#shi-yi-duan-xu-shu-er-fei-zhi-qie-de-gong-neng-yi-ji-bao-han-bu-bi-yao-de-bu-fen) 是一段敘述,而非直切的功能,以及包含不必要的部分 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#jian-yi-xiu-gai-ban-ben-jian-dan-ming-liao-yi-ju-wan-cheng) 建議修改版本,簡單明瞭,一句完成 > ### > > [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#op-shu-ru-zhi-ling-lockitem-hou-wei-dan-ge-wu-pin-kai-qi-fang-pen-si-wang-hou-gai-wu-pin-bu-hui-diao) > > OP輸入指令 (/lockitem) 後為單個物品開啟防噴,死亡後該物品不會掉 * * * ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#yi-xia-yi-ge-xiang-mu-wei-dan-yi-ze-liao-tian-xun-xi-wei-tuo-wen-wan-zheng-xing-zhi-jie-xing-deng-bu) 以下一個項目為單一則聊天訊息(委託文完整性、直接性等 不良示範) * 類似mm的RandomSpawn * 支援mm * 不過他的生成方式不同 * 他能在設定時間內 重複在設定世界 任意地方(能設定min max範圍) 生成 (已編輯) * 並且生成時會發出公告 Copy message: '%spawn_mob%在 %spawn_world% 座標 X:%spawn_x% Y:%spawn_y% Z:%spawn_z% 的地方生成了' * 跟MythicAnn一樣 * 每隻怪物單獨設定 * 還能夠設定PositionType: \[LAND/SEA\] ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#jian-yi-xiu-gai-ban-ben) 建議修改版本 > 隨機生成 MM 怪物 Copy SkeletalKnight: world: - world range: "-500,-64,-500 ~ 500,320,500" message: '%spawn_mob%在 %spawn_world% 座標 X:%spawn_x% Y:%spawn_y% Z:%spawn_z% 的地方生成了' position: # LAND 在陸地上、SEA則是海上 interval: 30s # 嘗試生成週期 time: - 'WEDNESDAY 18:00~20:00' - '9:00~12:00' # 每天 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#jia-she-ni-mei-na-ge-neng-li-xie-yml-na-mo-ni-ke-yi-cai-yong-zhong-wen-da-gai-shuo-ming) 假設你沒那個能力寫 yml ,那麼你可以採用中文大概說明 > ### > > [](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi#sui-ji-sheng-cheng-mm-guai-wu-dan-guai-wu-ke-she-ding-xuan-xiang) > > 隨機生成 MM 怪物,單怪物可設定選項: > > * 限制星期、時間 (未填星期則每天) > > * 時間內生成週期 > > * 生成位置條件 (海上或陸地上) > > * 生成時的公告訊息 > > * 生成位置範圍 > > * 允許生成的世界 > [Previous插件委託](https://docs.tjservice.org/) [Next設定](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding) Last updated 3 months ago --- # 基礎 | TJService Less Cost & More Power [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu#lei-xing) 類型 -------------------------------------------------------------------------------- 都需要哪些資料? [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/ge-shi-hua-wen-zi) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu#ge-shi-hua-wen-zi) 格式化文字 -------------------------------------------------------------------------------------------- 讓生活有點色調吧? [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu#gao-jie-yaml-yu-fa) 高階YAML語法 ------------------------------------------------------------------------------------------------ 你要會這個, 你才不會打太長。 [Previous設定](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding) [Next類型](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing) Last updated 10 months ago --- # 格式化文字 | TJService Less Cost & More Power 對於一般委託,我們使用 MineDown 作為格式化的工具。 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/ge-shi-hua-wen-zi#yu-she-minecraft-ge-shi-hua-dai-ma) 預設Minecraft格式化代碼 ------------------------------------------------------------------------------------------------------------------------------------------ ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252F5c6u8QDppnpXoBSnAH1x%252FMinecraft_Formatting.webp%3Falt%3Dmedia%26token%3D2ae0b776-1b30-4f75-9fe1-de1caa610f92&width=768&dpr=4&quality=100&sign=63eb4840&sv=2) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/ge-shi-hua-wen-zi#hex-dai-ma-jian-ceng) Hex代碼 & 漸層 ---------------------------------------------------------------------------------------------------------------------- > 暫時沒有時間編輯,請直接前往 [https://github.com/Phoenix616/MineDown](https://github.com/Phoenix616/MineDown) > 參考更多格式。 [Previous類型](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/lei-xing) [NextYAML語法](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/yaml-yu-fa) Last updated 6 months ago --- # TJAction | TJService Less Cost & More Power [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction#tjaction-shi-shen-mo) TJAction 是什麼? --------------------------------------------------------------------------------------------------------- TJAction 是由 TJService 開發的 YAML 動作系統,使用他可以觸發一些簡單動作。 比如傳送訊息同時撥放聲音、執行指令、關閉選單等。 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction#ji-ben-ge-shi) 基本格式 ----------------------------------------------------------------------------------------- Copy action: +: TJAction playsound_1: ENTITY_PLAYER_LEVELUP actionbar_1: '%message%' title_1: fadeOut: 10 fadeIn: 10 title: '%message%' stay: 100 在 YAML 的 TJAction 物件下,每一個 key 都是一個動作。 部分動作有簡寫(一行字串構成),也可以是資料結構動作。 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction#dong-zuo-de-zhen-ce-qu-jue-wu-key-de-kai-tou) 動作的偵測取決於 key 的開頭 ------------------------------------------------------------------------------------------------------------------------------------ 比如說 `title`, `title1`, `title_wtf`, `title+`,都會被視為動作 title。 [PreviousYAML語法](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/yaml-yu-fa) [Next通用動作](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo) Last updated 7 months ago --- # YAML語法 | TJService Less Cost & More Power [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/yaml-yu-fa#bie-cheng) 別稱 -------------------------------------------------------------------------------------------- Copy # 物件範例 A_Map: &thegodmap # 設定一個別名 A: 10 B: 20 C: 30 B_Map: *thegodmap # B_Map內容將與A_Map相同。 C_Map: # C_Map除了資料B為40,否則其他與A相同。 <<: *thegodmap # 合併資料進Map B: 40 # 字串範例 A_String: &thegodstring 'wtf' B_String: *thegodstring # 清單範例 A_List: &thegodlist - 'A' - 'B' - 'C' B_List: *thegodlist [Previous格式化文字](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/ji-chu/ge-shi-hua-wen-zi) [NextTJAction](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction) Last updated 1 year ago --- # 簡易運算式 | TJService Less Cost & More Power ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/jian-yi-yun-suan-shi#zai-tjaction-zhong-ni-ke-yi-bian-xie-yi-xie-jian-yi-de-yun-suan-shi-lai-bu-zhu-ji-suan-gong-cha-jian) 在 TJAction 中,你可以編寫一些簡易的運算式來補助計算、供插件本身功能取值。 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/jian-yi-yun-suan-shi#fu-hao-ding-yi) 符號定義 * 基礎運算 + - \* / % (取餘運算) * 資料比對 =, !=, >, <, >=, <= * 變數設定 a := 100 * 次方 10\*\*100 * 階乘 10! * 邏輯運算 a and b, a or b, !a * 布林 true/false * 字串 'hello world' * 數字 1234 * 函數呼叫 func(1,2,3) * 角度 30deg ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/jian-yi-yun-suan-shi#te-shu-ding-yi) 特殊定義 * 字串可乘以數字 'hello' \* 3 ⇒ 'hellohellohello' * 字串 % 字串 ⇒ 忽略大小寫比對 'hello' % 'Hello' ⇒ true * 字串 > 字串 ⇒ 左邊是否以右邊開頭 'hello world' > 'hello' ⇒ true * 字串 < 字串 ⇒ 左邊是否以右邊結尾 'hello world' < 'world' ⇒ true ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/jian-yi-yun-suan-shi#ji-ben-han-shu) 基本函數 * not(bool) 取反 not(1=1) ⇒ false * cos(rad) 餘弦 cos(90deg) ⇒ 0 * sin(rad) 正弦 sin(90deg) ⇒ 1 * rad(deg) 弧度轉弳度 rad(30) ⇒ 0.5235987756 (等同 30deg) * deg(rad) 弳度轉弧度 deg(0.5235987756) ⇒ 30.0000000001 (多的是誤差) * abs(number) 取絕對值 abs(-1.5) ⇒ 1.5 * sum(a, b, ...) 將所有數值加總 sum(1, 2, 3.5) ⇒ 6.5 * avg(a, b, ...) 平均值(若沒有參數,結果為 0) avg(2, 4, 6) ⇒ 4 * max(a, b, ...) 找出最大值 max(1, 5, 3) ⇒ 5 * min(a, b, ...) 找出最小值 min(1, 5, 3) ⇒ 1 * clamp(x, min, max) 限制 x 的值不超出 \[min, max\] 範圍 clamp(10, 0, 5) ⇒ 5 * sqrt(number) 平方根 sqrt(9) ⇒ 3 * floor(number) 無條件捨去(向下取整) floor(2.9) ⇒ 2 * ceil(number) 無條件進位(向上取整) ceil(2.1) ⇒ 3 * round(number) 四捨五入 round(2.5) ⇒ 3 * random() 隨機布林值 random() ⇒ true/false * random(probability) 以指定機率返回 true,否則 false random(0.25) ⇒ true/false (25% 機率為 true) * random(a, b) 回傳 a 到 b 間的隨機實數 random(1, 3) ⇒ 2.184 * randomint(a, b) 回傳 a 到 b 間的隨機整數(含兩端) randomint(1, 3) ⇒ 2 [Previous通用動作](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/tong-yong-dong-zuo) [NextSpigot](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot) Last updated 1 month ago --- # Spigot | TJService Less Cost & More Power [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#placeholderapi) PlaceholderAPI ----------------------------------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#guan-wu-tjaction-de-papi-bian-shu-zhi-yuan-mu-qian-jin-zhi-yuan-this-yong-lai-biao-shi-zi-shen-ming) 關於 TJAction 的 PAPI 變數 支援,目前僅支援 %this% 用來表示自身名稱。 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#ai-wu-gong-neng-feng-xian-zhe-ji-ti-chu-tjaction-zhi-fu-kuan-zhe-jue-ding-papi-gong-neng-bu-mian-fei) 礙於功能奉獻者(即提出TJAction之付款者)決定,PAPI功能不免費提供。 單插件 $300 / 終身買斷 $2,500 (適用於所有用到 TJAction 之插件) Message[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#message) _聊天欄訊息_ Copy action: +: TJAction message_1: 'Hello %player%!' ActionBar[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#actionbar) _狀態欄訊息_ Copy action: +: TJAction actionbar_1: 'wtf' Title[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#title) _標題訊息_ Copy action: # 以下三種等效 +: TJAction title_1: '&c主標題, &e副標題, 10, 70, 20' # <主標題> (副標題) (淡入) (淡出) (停留) title_2: '&c主標題, &e副標題' title_3: title: '&c主標題' subtitle: '&e副標題' fadeIn: 10 stay: 70 fadeOut: 20 Toast[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#toast) _成就訊息_ ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#style) Style * GOAL * CHALLENGE * TASK * * * ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#nbt) NBT 無論是否為 1.20.5 以上的 component, 都請使用 {} 的格式 **範例 1.20.5 以上** Copy minecraft:turtle_scute{enchantment_glint_override:true} * * * Copy action: # 以下三種等效 +: TJAction # (類型) <物品> <訊息> toast_1: 'GOAL, minecraft:diamond_sword{Damage:1}, &bA diamond sword!' toast_2: 'minecraft:diamond_sword{Damage:1}, &bA diamond sword!' toast_3: message: '&bA diamond sword!' item: 'minecraft:diamond_sword{Damage:1}' style: GOAL PlaySound[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#playsound) _撥放音效 (可支援非原版、材質包音效)_ Copy action: # 以下三種等效 +: TJAction playsound_1: 'ui.button.click' # <名稱> (音量 = 1) (音高 = 0) playsound_2: 'ui.button.click, 1.0, 0.0' playsound_3: id: 'ui.button.click' volume: 1.0 pitch: 0.0 Console[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#console) _以後台執行指令_ Copy action: +: TJAction console_1: 'give %player% diamond 64' Sudo[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#sudo) _以玩家身分執行指令_ Copy action: +: TJAction sudo_1: 'menu' SudoOP[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#sudoop) _以玩家擁有OP權限身分執行指令_ Copy action: +: TJAction sudoop_1: 'kill @s' Close[](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot#close) _關閉玩家當前視窗_ Copy action: +: TJAction close_1: '' [Previous簡易運算式](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/jian-yi-yun-suan-shi) [NextIDisplay](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/idisplay) Last updated 1 month ago --- # SimpleDatabase | TJService Less Cost & More Power Key Value type 類型 sqlite、mysql 插件不一定都支援非原先設計的存儲方式,請見 [委託須知](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi) 這僅是一個通用設定,實際內部執行的 sql 語法不一定兼容 host 主機:端口 database 資料庫名稱 extra 連接附加字串 auth username: 帳號 password: 密碼 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/simpledatabase#fan-li) 範例 -------------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/simpledatabase#mysql) MySQL Copy database: +: SimpleDatabase type: mysql host: 127.0.0.1:3307 database: Codex extra: '?autoReconnect=true&useUnicode=yes' auth: username: TJPlugin password: https://discord.tjservice.org/ ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/simpledatabase#sqlite) SQLite Copy database: ==: SimpleDatabase type: sqlite host: plugins\Codex database: data.db extra: '' auth: username: TJPlugin password: All the best! [PreviousIDisplay](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/idisplay) [Next時代的眼淚](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei) Last updated 6 months ago --- # 時代的眼淚 | TJService Less Cost & More Power 隨著 TJPlugin 的演化和進步,有些東西已逐漸隱沒於歷史長河。 但你如果持有舊架構插件,仍然可以在這邊找到設定。 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei#tjmessage) TJMessage ---------------------------------------------------------------------------------------------------- 對,目前只有我 QQ。 [PreviousSimpleDatabase](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/simpledatabase) [NextTJMessage](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage) Last updated 10 months ago --- # FAQ | TJService Less Cost & More Power [](https://docs.tjservice.org/cha-jian-wei-tuo/faq#wei-shen-mo-xiu-gai-cha-jian-bu-shi-yong-api-fei-yong-jiao-gao) 為什麼修改插件、不使用API費用較高? ------------------------------------------------------------------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/cha-jian-wei-tuo/faq#xiu-gai-cha-jian) 修改插件 在這個千變萬化的世界中,每個人的想法不同,自然會產生各式各樣的代碼及寫法(Code Style)。 修改插件必須理解別人的邏輯。 更何況,有些作者提供的原始碼在不做修改的前提下甚至只能在他電腦上使用(由於依賴項管理失當)。 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/faq#bu-shi-yong-api) 不使用API 如上段提到,API對開發速度有3~4倍的提升,時間就是金錢,相信是很好理解的。 * * * [](https://docs.tjservice.org/cha-jian-wei-tuo/faq#wei-shen-mo-wo-na-dao-de-yuan-shi-ma-wu-fa-bian-yi) 為什麼我拿到的原始碼無法編譯? --------------------------------------------------------------------------------------------------------------------------- 原始碼沒有保證能編譯,大部分僅供查看。 也由於有使用我們自製的API,而一般人的電腦中並不會有安裝此種依賴項。 編譯的辦法總是有的,但需要部份編譯系統知識,或改寫整個插件為無API形式。 * * * [](https://docs.tjservice.org/cha-jian-wei-tuo/faq#discord) Discord? ------------------------------------------------------------------------- 快,點下去! [https://discord.tjservice.org/](https://discord.tjservice.org/) [Previous常見依賴](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai) [Next服務條款](https://docs.tjservice.org/fu-wu-tiao-kuan) Last updated 9 months ago --- # IDisplay | TJService Less Cost & More Power [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/idisplay#zhe-li-de-suo-you-she-ding-du-wei-xuan-tian-idisplay-yi-fu-gai-fang-shi-yun-zuo) 這裡的所有設定都為_選填_,IDisplay以覆蓋方式運作。 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Key Value Display __ 清單第一行將為物品名 可使用 %old\_name% 取代原始物品名稱 %old\_lore% 取代原始物品介紹 IDisplay 以覆蓋方式運作,該物品即為來源物品。 Type __ 大寫的 Minecraft 物品 ID. `DIAMOND_ORE` Attributes __ 屬性有以下 * HIDE\_EVERYTHING - 隱藏全部 * GLOW - 發光(=隱藏附魔 + 修補I) * HIDE\_ARMOR\_TRIM - 隱藏模板資訊 * HIDE\_ATTRIBUTES - 隱藏屬性(+10速度...) * HIDE\_DESTROYS - 隱藏可用於破壞... * HIDE\_DYE - 隱藏染色資訊 * HIDE\_ENCHANTS - 隱藏腹膜 * HIDE\_PLACED\_ON - 隱藏可放置在... * HIDE\_POTION\_EFFECTS - 隱藏藥水效果 * HIDE\_UNBREAKABLE - 隱藏不可破壞 Enchantments __ CustomModelData __ NBT __ ItemsAdder __ `_iainternal:icon_search` Head __ (最推薦) ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/idisplay#huo-qu-te-ding-wan-jia-base64-zi-liao-de-fang-shi) 獲取特定玩家Base64資料的方式 1. 前往網址 `https://sessionserver.mojang.com/session/minecraft/profile/<玩家UUID>` 1. 複製 Properties 內的 Value ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/idisplay#huo-shi-ni-ye-ke-yi-zhi-jie-shi-yong-minecraft-heads-shang-de-tou-lu) 或是,你也可以直接使用 [Minecraft Heads](https://minecraft-heads.com/) 上的頭顱 1. 在 Custom Head 尋找需要的頭顱 2. 複製 For Developers 的 Value 資料 ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252F265CEzns8fwpH4IaXbRD%252Fimage.png%3Falt%3Dmedia%26token%3D840752ab-7a4b-4512-8bc1-0cdaf2100a10&width=768&dpr=4&quality=100&sign=73597b8&sv=2) [https://minecraft-heads.com/custom-heads/head/114419-cow-plushie](https://minecraft-heads.com/custom-heads/head/114419-cow-plushie) * * * 其餘方式每個玩家第一次開啟選單將看不到頭顱,也會開比較久 __ `Alex_TangJin_TW` __ `03def7b1-d953-4d57-a35a-5e51b967e2db` [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/idisplay#fan-li) 範例 -------------------------------------------------------------------------------- Copy # IDisplay 物件範例 IDisplay: +: IDisplay NBT: '{a:1,b:2}' # NBT 覆寫 Type: REDSTONE_ORE # 物品類型覆寫 CustomModelData: 10 # CustomModelData(材質包資料值)覆寫 Enchantments: # 附魔覆寫 # 附魔 ID: https://www.digminecraft.com/lists/enchantment_list_pc.php sharpness: 1 Attributes: # 屬性覆寫(包含 ItemFlags物品標示) # 額外: # HIDE_EVERYTHING, GLOW # ItemFlags物品標示: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html - GLOW Display: # 顯示(名稱及介紹) 覆寫 - '{&TEST NAME' # 這行將變成物品名 - '&cTEST LORE' - '' - '&7Old Item:' - '%old_name%' # 替代原始物品名稱 - '%old_lore%' # 替代原始物品介紹 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/idisplay#fu-jia-fan-li-1.20.5-yi-shang-nbtcomponents-xie-fa) 附加範例 - 1.20.5 以上 NBT(components) 寫法 Copy prev: ==: IDisplay NBT: '{"minecraft:profile":{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2EyYzEyY2IyMjkxODM4NGUwYTgxYzgyYTFlZDk5YWViZGNlOTRiMmVjMjc1NDgwMDk3MjMxOWI1NzkwMGFmYiJ9fX0="}]}}' Type: PLAYER_HEAD Display: - '&e上一頁' next: ==: IDisplay NBT: '{"minecraft:profile":{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjkxYWM0MzJhYTQwZDdlN2E2ODdhYTg1MDQxZGU2MzY3MTJkNGYwMjI2MzJkZDUzNTZjODgwNTIxYWYyNzIzYSJ9fX0="}]}}' Type: PLAYER_HEAD Display: - '&e下一頁' [PreviousSpigot](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/tjaction/spigot) [NextSimpleDatabase](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/simpledatabase) Last updated 6 months ago --- # 常見依賴 | TJService Less Cost & More Power 我們只有一個自製依賴,用於連接資料庫(Spigot Plugin,否則現已棄用,改為動態下載)。 ### [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#mysql-sqlite) MySQL / SQLite ... > [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#anydatabasesupport) > > [~_AnyDatabaseSupport_~](https://datastore.tjservice.org/dependencies/AnyDatabaseSupport.jar) > > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#xian-yi-quan-gai-wei-dong-tai-xia-zai) > > _(現已全改為動態下載)_ > > > -------------------------------------------------------------------------------------------------------------------------- [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#te-shu-wei-tuo-zhuan-yong) 特殊委託專用 ------------------------------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#spigot-feng-bao-cao-zuo) Spigot 封包操作 > [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#protocollib) > > [~_ProtocolLib_~](https://www.spigotmc.org/resources/protocollib.1997/) > > > > ----------------------------------------------------------------------------------------------------------------------------------------------------------- > > [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#xian-zai-shi-yong-qi-ta-api-hui-da-bao-jin-cha-jian-nei) > > _(現在使用其他API,會打包進插件內)_ > > > ---------------------------------------------------------------------------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#bungeecordvelocity-feng-bao-cao-zuo-huo-gui) BungeeCord/Velocity 封包操作 (或 GUI) > [](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai#protocolize) > > [_Protocolize_](https://www.spigotmc.org/resources/protocolize-protocollib-for-bungeecord-waterfall-velocity.63778/) > > > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [PreviousTJMessage](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage) [NextFAQ](https://docs.tjservice.org/cha-jian-wei-tuo/faq) Last updated 9 months ago --- # TJMessage | TJService Less Cost & More Power 我們沒有責任為你的伺服器修復除你當初委託內容以外的其他訊息類型 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#zhi-yuan-du) 支援度 ---------------------------------------------------------------------------------------------------------- 類型 Spigot BungeeCord ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#message-xun-xi) Message 訊息 ✔️ ✔️ ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#actionbar-wu-pin-lan-shang) ActionBar 物品欄上 ✔️ ✔️ ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#title-biao-ti-zi-biao-ti) Title 標題子標題 ✔️ ✔️ ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#advancementtoast-cheng-jiu-xun-xi) Advancement(Toast)成就訊息 ✔️ ✔️_**(轉接)**_ [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#yi-ban-xuan-xiang-xun-xi-mu-ban) 一般選項(訊息模板) ------------------------------------------------------------------------------------------------------------------------------------- messages [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#tab-messages) random (選填) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#tab-random-xuan-tian) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#messages-less-than-list-map-message-greater-than) messages: __ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 不發送任何訊息,請使用 Copy messages: [] # [] 表示空清單 [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#xun-xi) 訊息 ---------------------------------------------------------------------------------------------------- > 你可以用哪些類型呢? Message [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#tab-message) ActionBar [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#tab-actionbar) Title [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#tab-title) Toast [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#tab-toast) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#type-message) type: MESSAGE --------------------------------------------------------------------------------------------------------------------- > 一般的訊息,沒什麼特別的。 Key Value message 訊息 __ ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#fan-li) 範例 Copy ... - message: '&cYou''ve still need to wait &f%n% seconds &cto execute this command again!' type: MESSAGE ... ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252FAEPFdWmaX9t23MxbuFFb%252Fimage.png%3Falt%3Dmedia%26token%3D60cc2ee8-4db3-4269-8f8c-e52a731d8ed7&width=768&dpr=4&quality=100&sign=3ee648c1&sv=2) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#type-action_bar) type: ACTION\_BAR ---------------------------------------------------------------------------------------------------------------------------- > 看來有東西在你的物品欄上? Key Value message 訊息 __ ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252FOeFjivJDxJ1iD3e5yxyf%252Fimage.png%3Falt%3Dmedia%26token%3Dd1ebc28b-63d0-4f36-aef5-9d1cc61bf95b&width=768&dpr=4&quality=100&sign=502c6da0&sv=2) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#type-title) type: TITLE ----------------------------------------------------------------------------------------------------------------- > 都那麼大了還不夠明顯嗎? Key Value title 標題 __ subtitle 副標題 __ fadeIn 淡入 __ stay 停留 __ fadeOut 淡出 __ ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252FyCaPPGawlceefQZ1klv2%252Fimage.png%3Falt%3Dmedia%26token%3D0feb8783-ee65-450d-ba44-f7bfe10e3f56&width=768&dpr=4&quality=100&sign=ce6b5131&sv=2) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#type-toast) type: TOAST ----------------------------------------------------------------------------------------------------------------- > 成就達成! [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#bungeecord-xu-zhi) BungeeCord須知 ------------------------------------------------------------------------------------------------------------------------- 使用 BungeeCord 上的成就訊息是透過轉接來完成, 自從某個神奇的年代開始,只要後端有安裝任何一款支援TJMessage的插件, 即會自動監聽並轉接TJMessage。 Key Value message 訊息 __ icon 顯示圖標 __ Copy icon: 'minecraft:nether_star{"這":"可以使用NBT"}' style 樣式_(選填)_ __ * TASK * GOAL (預設) * CHALLENGE ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252FE5ebPxjrL8JakBXx5z05%252Fimage.png%3Falt%3Dmedia%26token%3D308854ad-c9f5-4fe0-9287-0d89425de898&width=768&dpr=4&quality=100&sign=1cfa5edf&sv=2) [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#random-less-than-boolean-greater-than) random: __ ---------------------------------------------------------------------------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#fan-li-1) 範例: > random: false (預設) Copy needWait: ==: TJMessage messages: - title: '&cCommand blocked!' subtitle: '&fAhh! Please slow down!' fadeIn: 20 stay: 40 fadeOut: 20 type: TITLE - message: '&cYou''ve still need to wait &f%n% seconds &cto execute this command again!' type: MESSAGE ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252F6fuRWPiASuVrpVx97K06%252Fimage.png%3Falt%3Dmedia%26token%3D0e2d07a4-699b-429f-97e9-25c9101e4772&width=768&dpr=4&quality=100&sign=dd0fe452&sv=2) **兩者都發送了。** > random: true Copy needWait: ==: TJMessage messages: - title: '&cCommand blocked!' subtitle: '&fAhh! Please slow down!' fadeIn: 20 stay: 40 fadeOut: 20 type: TITLE - message: '&cYou''ve still need to wait &f%n% seconds &cto execute this command again!' type: MESSAGE ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252FHuo0iRpj9xI7x2YRXEDW%252Fimage.png%3Falt%3Dmedia%26token%3Dd5c2efc1-034c-4a9b-b23a-c0225e1476fa&width=768&dpr=4&quality=100&sign=70f48d75&sv=2) 或 ![](https://docs.tjservice.org/~gitbook/image?url=https%3A%2F%2F3025166155-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fv0NbTBA1qR1fdsFmU0sC%252Fuploads%252FoDUF8Y9Kl4LqGpT2e6Tj%252Fimage.png%3Falt%3Dmedia%26token%3De1c8d040-cf0b-44e2-bc18-f3d8412d31be&width=768&dpr=4&quality=100&sign=7a7bbe3f&sv=2) **只有其中一者被發送** [](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei/tjmessage#fan-li-2) 範例 ------------------------------------------------------------------------------------------------------ Copy done: +: TJMessage messages: - message: '&7[&cRTP&7] &aArrived at &f%location%' type: MESSAGE - title: '&cLand!' subtitle: 'You''ve arrived at %location%' fadeIn: 20 stay: 40 fadeOut: 20 type: TITLE [Previous時代的眼淚](https://docs.tjservice.org/cha-jian-wei-tuo/she-ding/shi-dai-de-yan-lei) [Next常見依賴](https://docs.tjservice.org/cha-jian-wei-tuo/chang-jian-yi-lai) Last updated 6 months ago --- # 服務條款 | TJService Less Cost & More Power [](https://docs.tjservice.org/fu-wu-tiao-kuan#ban-ben-2.1.2) 版本 2.1.2 -------------------------------------------------------------------------- 服務條款可能隨時變動,若為委託客戶,請確保打開 [Discord](https://discord.tjservice.org/) 通知接收更新公告 委託時也請確認是否跟自己上次看到的版本號一致 本條款最後內容更新日期 2023/7/2 > \# **若有提及價錢,則皆以新台幣($NTD)為單位** [](https://docs.tjservice.org/fu-wu-tiao-kuan#yi-he-xie-tiao-yue) \# 一/和諧條約 -------------------------------------------------------------------------------- 1. 下訂後**無特殊原因不可退訂/款** 2. 委託人失蹤之未追溯案件**有半年效力** 3. 中途若委託人**不配合案件完成**(具體事宜依工作人員判斷,不得有異議), 亦或者**直接消失**,則**直接停止此案件**,款項不予退還 4. 每次的**違約**將會**記上警告,警告會影響你的事後委託能力** 5. 任何專案成立後視為委託人所有,但 * **不得以任何方式轉售(以其他形式包裝轉售行為亦同)** 方式包括但不限於 修改、重新包裝、修改源碼輸出的插件... * 可以贈送(將插件裝在非委託者所開的伺服器皆定義為贈送)給其他人,但被贈送人 **不可用於營利用途** * 如被贈送人需要**營利**,請被贈送人花費 **1000元** 購買對被贈送人的專案授權 (如果插件總費用<1000 則只需要付插件費用當授權費) 1. 專案如果有**Bug漏洞**(非衝突),或是當初委託時有包含但是未注意的事項, 將**免費更新**,如有需要**加強功能**等,將依照內容付費,且允許微調(微調次數及具體內容由開發者判斷) 2. 案件費用會依照 **委託文章完整性、邏輯性** 及 **製作困難度**等等因素決定, 具體委託文寫法可查看 [委託須知](https://docs.tjservice.org/cha-jian-wei-tuo/wei-tuo-xu-zhi) 。 3. 當委託內容、敘述與成品不同產生爭議時,開發者保有判斷權及最終解釋權。 若邏輯合理,則不得有異議。 4. \[插件類委託\] 會使用**自製API**幫助編寫, 如需 **不使用API 或 無該類API可用(目前僅Velocity API部分尚未完整)**,將會加收費用 [](https://docs.tjservice.org/fu-wu-tiao-kuan#er-wei-tuo-tiao-yue) \# 二/委託條約 --------------------------------------------------------------------------------- > ### > > [](https://docs.tjservice.org/fu-wu-tiao-kuan#shou-ci-wei-tuo-fu-kuan-hou-hui-cheng-wei-ke-hu-bing-kai-zhuan-an-qu-ri-hou-ze-bu-xu-zai-ci-kai-dan) > > 首次委託付款後會成為客戶,並開專案區 ,日後則不需再次開單委託 1. 當您與我們進行交易時,即代表您為 **完全行為能力者** 2. 專案價格如果超過**3000元**,可以先付款**40%**,後續依照專案進度多加支付 3. 修改插件、引用API等,如原作者提出異議,**由委託方全權負責** 4. 正常**委託流程**為 委託 > 審核✅ 通過 > * 進入排隊期間 - 請在這段時間內完成付款(如果有很多人可以先付款排隊搶位) > > * 開始製作 - 如果是使用文字訊息,期間會使用**打勾 或 刪除的方式回報進度** > > * \[如有**尾款**\] 提供**預覽查看**後等待收到尾款 > > * **送出專案檔案** > > * ❌ 拒絕 可能原因為無能力製作、**委託文不標準** 或 **缺乏必要資訊**,一般來說補上資訊即可 > [](https://docs.tjservice.org/fu-wu-tiao-kuan#san-wei-yue-tiao-yue) \# 三/違約條約 ---------------------------------------------------------------------------------- ### [](https://docs.tjservice.org/fu-wu-tiao-kuan#mei-ci-wei-gui-bu-yi-ding-zhi-hui-ji-yi-ci-qing-jie-yan-zhong-zhe-ke-neng-bei-zhi-jie-jin-zhi) 每次違規不一定只會記一次,情節嚴重者可能被直接禁止 截至目前,有違約紀錄者僅有兩人。 基本上只要是合理使用委託服務,有遵守條約,都不會被禁止。 ### [](https://docs.tjservice.org/fu-wu-tiao-kuan#wei-yue-pan-ding-bao-kuo-dan-bu-xian-wu-ci-fen-tiao-yue-zhong-ti-ji-xiang-bi-yao-hui-shi-qing-kuang) 違約判定包括但不限於此份條約中提及項,必要會視情況處理 > 只要有警告都會排至最後優先權,可多付款 $200 優先處理 1. **警告**達到 1 次,無論價格須**一次付清全款才會接受委託** 2. **警告**達到 2 次,**禁止委託** 3. 以上規則疊加運作 [](https://docs.tjservice.org/fu-wu-tiao-kuan#si-wei-tuo-fu-li) \# 四/委託福利 ------------------------------------------------------------------------------ 1. 可要求原代碼,**不須付費**,原代碼亦不保證能編譯 2. \[插件類委託\] 會使用自製API 加速編寫 並也**以API的方式降低價格** 3. \[插件類委託\] **玩家可視部分**,設定**不依照設定數量多付錢**, 且基本上能設定的都會給設定(訊息、資料值、物品顯示..) [](https://docs.tjservice.org/fu-wu-tiao-kuan#wu-fu-kuan) \# 五/付款 ---------------------------------------------------------------------- 1\. 詳細付款方式多變,請至 [Discord社群](https://discord.tjservice.org/) 查看 2\. 多付款一律補為儲備金,退款手續複雜,儲備金暫不可領出 [](https://docs.tjservice.org/fu-wu-tiao-kuan#liu-cha-jian-lei-wei-tuo-hu-zhu-zheng-ce-jia-ge-jiang-di-zheng-ce) \# 六/\[插件類委託\] 互助政策 (價格降低政策) -------------------------------------------------------------------------------------------------------------------------------------------------- 1. 當插件有用到其他人提出的 **公用API物件**時,將在此功能有機會**提供更多設定** 2. 當編寫者認為有需要 **編為公用物件時**,會詢問是否同意 > * ✅ 同意 此後有用到此API物件均不需付費,**其他人有此類API需求委託也會使用到** > > * ❌ 拒絕 此後**使用此類API物件都需重寫** > [PreviousFAQ](https://docs.tjservice.org/cha-jian-wei-tuo/faq) Last updated 3 months ago ---