{"id":17014586,"url":"https://github.com/necnion8/papipattern","last_synced_at":"2026-04-16T00:33:07.429Z","repository":{"id":82222786,"uuid":"606292068","full_name":"Necnion8/PAPIPattern","owner":"Necnion8","description":"PlaceholderAPIと連携し、正規表現により出力をカスタムする","archived":false,"fork":false,"pushed_at":"2023-02-25T06:16:34.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T10:38:45.596Z","etag":null,"topics":["minecraft-plugin","placeholderapi","spigot-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Necnion8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-25T03:47:55.000Z","updated_at":"2024-10-27T08:57:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b6f5b50-1f62-4cf1-aa59-9c18eb596ac4","html_url":"https://github.com/Necnion8/PAPIPattern","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Necnion8/PAPIPattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FPAPIPattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FPAPIPattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FPAPIPattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FPAPIPattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Necnion8","download_url":"https://codeload.github.com/Necnion8/PAPIPattern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FPAPIPattern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31866347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["minecraft-plugin","placeholderapi","spigot-plugin"],"created_at":"2024-10-14T06:25:24.482Z","updated_at":"2026-04-16T00:33:07.411Z","avatar_url":"https://github.com/Necnion8.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PAPIPattern\nPlaceholderAPIと連携し、正規表現により出力をカスタムする\n\n## 前提\n- Bukkit またはその派生\n- PlaceholderAPI\n\n## コマンドと権限\n- 設定の再読み込みコマンド - `/papiPattern reload`\n\u003e 権限: `papipattern.command.papipattern` (default: OP)\n\n## 設定\n```yml\nplaceholders:\n  \"hpdisplay\":\n    - input: \"%player_health%\"\n      check: \"^20\\\\.0$\"\n      output: \"FULL\"\n    - output: \"%player_health%\"\n\n  \"ppt_server_(\\\\w+)\":\n    - input: \"%serverutils_server_online_$1%\"\n      check: \"ONLINE\"\n      output: \"ON-LINE $1\"\n    - output: \"OFF-LINE $1\"\n```\n\n2つのプレースホルダが初期設定されています。\n\n\n#### 設定項目について\n- `input` : 条件判別に使う文字列 (引数の代入に対応)\n- `output` : 出力する文字列 (引数の代入に対応)\n- `check` : `input` の条件判別。この判別テストに成功すると出力が確定します。(正規表現に対応)\n- これらの設定条件をいくつか設定でき、上から順に判別されていきます。\n##### 例: `%ppattern_hpdisplay%`\n1. 実行者プレイヤーのHP(`%player_health%`)が `20.0` だった場合に `FULL` という文字を出力します。\n2. **1.** の条件がマッチしなかった場合は、`%player_health%` の値がそのまま出力されます。\n##### 例: `%ppattern_ppt_server_XXX%`\n0. `%ppattern_ppt_server_abc%` が与えられた場合\n1. `input` が `%serverutils_server_online_abc%` に変換され、`ONLINE` を含む値の場合は `ON-LINE abc` を出力します。\n2. **1.** の条件がマッチしなかった場合は、`OFF-LINE abc` の値が出力されます。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnecnion8%2Fpapipattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnecnion8%2Fpapipattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnecnion8%2Fpapipattern/lists"}