摘要字段(粘贴到 Modrinth 的“Summary”中,最多 256 个字符)
EN: 保护首次加入的玩家免受 PvP 伤害,时长可配置。默认仅计算在线时长,重启后继续计时,并支持英文和日文消息。
JA: 初参加のプレイヤーを、設定した時間だけ PvP 不可にします。初期設定ではオンライン時間だけを数え、再起動しても続きから。メッセージは英語・日本語に対応。
================ DESCRIPTION BODY STARTS BELOW (paste everything under this line) ================
NewbieProtect
English | 日本語
一款简单的防新手保护插件。首次加入服务器的玩家在一定时间内无法被其他玩家攻击(也无法攻击他人),以便他们能安心收集第一批资源。
功能
- 首次加入保护:新玩家将在你设定的时间内(例如 30 分钟)受到 PvP 保护。
- 仅计算在线时长(默认):计时器仅在玩家在线时运行,因此立即登出的新玩家不会损失保护时间。你可以在配置文件中切换为真实时间计时。
- 重启后继续:剩余时间会被保存,重启服务器后会从断点处继续计时。
- 攻击与投射物:受保护的玩家既不能攻击也不能被攻击。箭矢、三叉戟和其他投射物也包含在内。
- 清晰的反馈:提供欢迎消息、有人尝试攻击时的动作栏提示以及保护结束时的消息。
- 管理员命令:检查、移除或赋予保护,并重新加载配置文件。
- 英文和日文:在
config.yml 中选择语言。每条消息均可编辑,你也可以添加自己的语言文件。
- 轻量级:无需数据库,无依赖项。数据在后台保存。
要求
- Paper 1.21 或更高版本(不支持 Folia)
安装
- 将
NewbieProtect.jar 放入你的 plugins 文件夹。
- 启动服务器。
plugins/NewbieProtect/config.yml 和 lang 文件夹将被创建。
- 根据需要编辑
config.yml。
- 运行
/newbie reload(或重启服务器)。
配置
language: "en" # "en" 或 "ja"(或你自己的语言文件)
protection:
duration: "30m" # 30s, 30m, 1h30m, 2d ... (s, m, h, d, w)
count-offline-time: false
| 选项 |
描述 |
language |
游戏内消息的语言。包含 en 和 ja。 |
protection.duration |
新玩家受保护的时长。 |
protection.count-offline-time |
false(推荐):仅计算在线时长。true:玩家离线时计时器也会继续运行。 |
命令与权限
| 命令 |
权限 |
描述 |
/newbie(或 /newbie check) |
无 |
显示你剩余的 protection 时间。 |
/newbie check <player> |
newbieprotect.admin |
显示在线玩家的剩余时间。 |
/newbie give <player> |
newbieprotect.admin |
给在线玩家赋予新的 protection 时长。 |
/newbie remove <player> |
newbieprotect.admin |
结束在线玩家的 protection。 |
/newbie reload |
newbieprotect.admin |
重新加载 config.yml 和语言文件。 |
| 权限 |
默认值 |
描述 |
newbieprotect.admin |
OP |
允许使用上述管理员命令。 |
newbieprotect.bypass |
nobody |
拥有此权限的玩家永远不会获得 protection。 |
别名 /newbieprotect 同样有效。
语言
首次启动时,会在 plugins/NewbieProtect/ 下创建 lang/en.yml 和 lang/ja.yml。在 config.yml 中设置 language 以选择一种语言。要添加你自己的语言,请将 lang/en.yml 复制为 lang/<code>.yml,翻译它并将 language 设置为 "<code>"。任何语言文件中缺失的消息将回退到英文。
注意事项与限制
- 只有首次加入的玩家才会受到保护。在安装插件之前加入的玩家不受保护。若要手动保护某人,请使用
/newbie give <player>。
- 仅阻止 PvP。受保护的玩家仍会受到生物、摔落等伤害。
- 仅阻挡直接命中和投射物。间接伤害(例如溅射药水或 TNT)可能不会被阻挡。
check、give 和 remove 对其他玩家的操作仅在该玩家在线时有效。
日本語
English | 日本語
シンプルな新規プレイヤー保護プラグインです。初めてサーバーに参加したプレイヤーは、設定した時間のあいだ、他のプレイヤーに攻撃されず、攻撃もできません。最初の資源集めを、落ち着いて進められます。
機能
- 初参加の保護: 新規プレイヤーを、設定した時間(例: 30分)だけ PvP から守ります。
- オンライン時間だけを数える(初期設定): タイマーはログインしている間だけ進みます。すぐにログアウトしても、保護は減りません。設定で、実時間に切り替えることもできます。
- 再起動しても続く: 残り時間は保存されるので、再起動しても続きから数えます。
- 攻撃と飛び道具: 保護中の人は、攻撃も被攻撃もできません。矢や三叉槍などの飛び道具も対象です。
- わかりやすい通知: 参加時のメッセージ、攻撃しようとした時のアクションバー表示、保護が終わった時のメッセージが出ます。
- 管理コマンド: 保護の確認・解除・付与と、設定の再読み込みができます。
- 英語・日本語に対応:
config.yml で言語を選べます。メッセージはすべて編集でき、自分の言語ファイルを追加することもできます。
- 軽量: データベースも、依存プラグインも不要です。データの保存は、裏で行われます。
必要なもの
- Paper 1.21 以降(Folia には非対応です)
導入方法
NewbieProtect.jar を plugins フォルダに入れます。
- サーバーを起動します。
plugins/NewbieProtect/config.yml と lang フォルダが作られます。
config.yml を好きなように編集します。
/newbie reload を実行します(またはサーバーを再起動します)。
設定
language: "ja" # "en" か "ja"(自作の言語ファイルも可)
protection:
duration: "30m" # 30s, 30m, 1h30m, 2d ... (s, m, h, d, w)
count-offline-time: false
| 項目 |
説明 |
language |
ゲーム内メッセージの言語。en と ja が付属しています。 |
protection.duration |
新規プレイヤーを保護する時間。 |
protection.count-offline-time |
false(おすすめ): オンライン時間だけを数えます。true: ログアウト中も時間が進みます。 |
コマンドと権限
| コマンド |
権限 |
説明 |
/newbie(または /newbie check) |
なし |
自分の残り時間を表示します。 |
/newbie check <プレイヤー名> |
newbieprotect.admin |
オンラインのプレイヤーの残り時間を表示します。 |
/newbie give <プレイヤー名> |
newbieprotect.admin |
オンラインのプレイヤーに、設定した時間の保護を新しく付与します。 |
/newbie remove <プレイヤー名> |
newbieprotect.admin |
オンラインのプレイヤーの保護を終わらせます。 |
/newbie reload |
newbieprotect.admin |
config.yml と言語ファイルを再読み込みします。 |
| 权限 |
初始值 |
说明 |
newbieprotect.admin |
OP(管理员) |
可以使用上述管理命令。 |
newbieprotect.bypass |
无人拥有 |
拥有此权限的玩家不受保护。 |
也可以使用别名为 /newbieprotect 的命令。
语言
首次启动时,会在 plugins/NewbieProtect/ 目录下生成 lang/en.yml 和 lang/ja.yml 文件。请在 config.yml 中通过 language 选项进行选择。若要添加自己的语言,请将 lang/en.yml 复制为 lang/<代码>.yml 并进行翻译,然后设置 language: "<代码>"。语言文件中不存在消息将默认显示为英文。
注意事项与限制
- 仅保护首次加入服务器的玩家。在安装插件之前已经加入的玩家不会受到保护。如需手动保护特定玩家,请使用
/newbie give <玩家名称>。
- 仅阻止 PvP(玩家对玩家攻击)。在保护期间,玩家仍会受到来自生物、掉落等来源的伤害。
- 仅阻止直接攻击和远程投射物。溅射药水或 TNT 等间接伤害可能无法被完全阻止。
- 对其他玩家执行
check、give 或 remove 操作时,目标玩家必须处于在线状态。
SUMMARY FIELD (paste into Modrinth's "Summary", max 256 characters)
EN: Protects players who join for the first time from PvP for a configurable time. Counts online time only by default, survives restarts, and supports English and Japanese messages.
JA: 初参加のプレイヤーを、設定した時間だけ PvP 不可にします。初期設定ではオンライン時間だけを数え、再起動しても続きから。メッセージは英語・日本語に対応。
================ DESCRIPTION BODY STARTS BELOW (paste everything under this line) ================
NewbieProtect
English | 日本語
A simple new-player protection plugin. Players who join your server for the first time cannot be attacked by other players (and cannot attack them) for a configurable amount of time, so they have a chance to gather their first resources in peace.
Features
- First-join protection: a new player is protected from PvP for the time you set, for example 30 minutes.
- Online time only (default): the timer only runs while the player is online, so a new player who logs off right away does not lose the protection. You can switch to real time in the config.
- Survives restarts: the remaining time is saved, so it continues where it left off after a restart.
- Attacks and projectiles: protected players can neither attack nor be attacked. Arrows, tridents and other projectiles count too.
- Clear feedback: a welcome message, an action bar message when someone tries to attack, and a message when the protection ends.
- Admin commands: check, remove or give protection, and reload the config.
- English and Japanese: choose the language in
config.yml. Every message can be edited, and you can add your own language file.
- Lightweight: no database and no dependencies. Data is saved in the background.
Requirements
- Paper 1.21 or newer (Folia is not supported)
Installation
- Put
NewbieProtect.jar into your plugins folder.
- Start the server.
plugins/NewbieProtect/config.yml and the lang folder are created.
- Edit
config.yml as you like.
- Run
/newbie reload (or restart the server).
Configuration
language: "en" # "en" or "ja" (or your own language file)
protection:
duration: "30m" # 30s, 30m, 1h30m, 2d ... (s, m, h, d, w)
count-offline-time: false
| Option |
Description |
language |
Language of the in-game messages. en and ja are included. |
protection.duration |
How long a new player is protected. |
protection.count-offline-time |
false (recommended): only online time counts. true: the timer keeps running while the player is offline. |
Commands and permissions
| Command |
Permission |
Description |
/newbie (or /newbie check) |
none |
Shows your remaining protection time. |
/newbie check <player> |
newbieprotect.admin |
Shows the remaining time of an online player. |
/newbie give <player> |
newbieprotect.admin |
Gives an online player a new protection for the configured time. |
/newbie remove <player> |
newbieprotect.admin |
Ends the protection of an online player. |
/newbie reload |
newbieprotect.admin |
Reloads config.yml and the language files. |
| Permission |
Default |
Description |
newbieprotect.admin |
OP |
Allows the admin commands above. |
newbieprotect.bypass |
nobody |
Players with this permission never receive protection. |
The alias /newbieprotect works as well.
Languages
On the first start, lang/en.yml and lang/ja.yml are created in plugins/NewbieProtect/. Set language in config.yml to choose one. To add your own language, copy lang/en.yml to lang/<code>.yml, translate it and set language: "<code>". Any message missing from a language file falls back to English.
Notes and limitations
- Only players who join for the first time are protected. Players who joined before the plugin was installed are not protected. To protect someone manually, use
/newbie give <player>.
- Only PvP is blocked. Protected players can still take damage from mobs, fall damage and so on.
- Only direct hits and projectiles are blocked. Indirect damage (for example splash potions or TNT) may not be blocked.
check, give and remove for other players only work while that player is online.
日本語
English | 日本語
シンプルな新規プレイヤー保護プラグインです。初めてサーバーに参加したプレイヤーは、設定した時間のあいだ、他のプレイヤーに攻撃されず、攻撃もできません。最初の資源集めを、落ち着いて進められます。
機能
- 初参加の保護: 新規プレイヤーを、設定した時間(例: 30分)だけ PvP から守ります。
- オンライン時間だけを数える(初期設定): タイマーはログインしている間だけ進みます。すぐにログアウトしても、保護は減りません。設定で、実時間に切り替えることもできます。
- 再起動しても続く: 残り時間は保存されるので、再起動しても続きから数えます。
- 攻撃と飛び道具: 保護中の人は、攻撃も被攻撃もできません。矢や三叉槍などの飛び道具も対象です。
- わかりやすい通知: 参加時のメッセージ、攻撃しようとした時のアクションバー表示、保護が終わった時のメッセージが出ます。
- 管理コマンド: 保護の確認・解除・付与と、設定の再読み込みができます。
- 英語・日本語に対応:
config.yml で言語を選べます。メッセージはすべて編集でき、自分の言語ファイルを追加することもできます。
- 軽量: データベースも、依存プラグインも不要です。データの保存は、裏で行われます。
必要なもの
- Paper 1.21 以降(Folia には非対応です)
導入方法
NewbieProtect.jar を plugins フォルダに入れます。
- サーバーを起動します。
plugins/NewbieProtect/config.yml と lang フォルダが作られます。
config.yml を好きなように編集します。
/newbie reload を実行します(またはサーバーを再起動します)。
設定
language: "ja" # "en" か "ja"(自作の言語ファイルも可)
protection:
duration: "30m" # 30s, 30m, 1h30m, 2d ... (s, m, h, d, w)
count-offline-time: false
| 項目 |
説明 |
language |
ゲーム内メッセージの言語。en と ja が付属しています。 |
protection.duration |
新規プレイヤーを保護する時間。 |
protection.count-offline-time |
false(おすすめ): オンライン時間だけを数えます。true: ログアウト中も時間が進みます。 |
コマンドと権限
| コマンド |
権限 |
説明 |
/newbie(または /newbie check) |
なし |
自分の残り時間を表示します。 |
/newbie check <プレイヤー名> |
newbieprotect.admin |
オンラインのプレイヤーの残り時間を表示します。 |
/newbie give <プレイヤー名> |
newbieprotect.admin |
オンラインのプレイヤーに、設定した時間の保護を新しく付与します。 |
/newbie remove <プレイヤー名> |
newbieprotect.admin |
オンラインのプレイヤーの保護を終わらせます。 |
/newbie reload |
newbieprotect.admin |
config.yml と言語ファイルを再読み込みします。 |
| 権限 |
初期値 |
説明 |
newbieprotect.admin |
OP |
上の管理コマンドを使えます。 |
newbieprotect.bypass |
誰も持たない |
この権限を持つ人は、保護を受けません。 |
別名の /newbieprotect も使えます。
言語
初回の起動時に、plugins/NewbieProtect/ に lang/en.yml と lang/ja.yml が作られます。config.yml の language で選んでください。自分の言語を追加するには、lang/en.yml を lang/<コード>.yml としてコピーして翻訳し、language: "<コード>" と設定します。言語ファイルにないメッセージは、英語で表示されます。
注意点と制限
- 保護されるのは、初めて参加した人だけです。プラグインを入れる前に参加していた人は、保護されません。手動で保護したい場合は、
/newbie give <プレイヤー名> を使ってください。
- 止めるのは PvP だけです。保護中でも、モブや落下などのダメージは受けます。
- 直接の攻撃と飛び道具だけを止めます。スプラッシュポーションや TNT などの間接的なダメージは、止められない場合があります。
- 他のプレイヤーへの
check・give・remove は、相手がオンラインの時だけ使えます。
评论 0
登录后参与评分
还没有评论,来抢沙发吧