「AFKPlus」の版間の差分
提供:pkki鯖公式wiki
編集の要約なし |
編集の要約なし |
||
(同じ利用者による、間の2版が非表示) | |||
36行目: | 36行目: | ||
== Configファイル == | == Configファイル == | ||
<syntaxhighlight> | ※ChatGPTによる翻訳(人間によるチェック済み) | ||
<syntaxhighlight lang="yaml"> | |||
ConfigVersion: 13 | ConfigVersion: 13 | ||
# | #新しいアップデートを確認するかどうか、UpdateDownloadがfalseの場合は動作しません | ||
UpdateCheck: true | UpdateCheck: true | ||
# | #新しいバージョンが利用可能になったときに自動でダウンロードしてインストールするかどうか | ||
UpdateDownload: true | UpdateDownload: true | ||
# | #使用しない場合はコマンドを空白にしてください。これらのコマンドはプレイヤーをAFKに設定するプロセス中に実行されます。 | ||
# | #これにより、プレイヤーをテレポートしたり移動させたりすると問題が発生する可能性があります。 | ||
# | #アクションコマンドはプレイヤーを非AFKにするか、サーバーから削除する必要があります | ||
Commands: | Commands: | ||
Action: "kick [PLAYER] | Action: "kick [PLAYER] あなたは長時間AFKでした!" | ||
AFKStart: "" | AFKStart: "" | ||
AFKStop: "" | AFKStop: "" | ||
Warn: "" | Warn: "" | ||
# | #アクションコマンドが実行される前にサーバーにプレイヤーがこの数いる必要があります | ||
# | #サーバーがこの制限に達すると、通常のアクション時間を超えてAFKのプレイヤーがキックされます | ||
# | #サーバーがxプレイヤーに達したときにプレイヤーにキックされる旨の警告メッセージを表示することをお勧めします | ||
# | #0に設定すると、プレイヤーは常にアクションが起こるようになります | ||
ActionPlayerRequirement: 0 | ActionPlayerRequirement: 0 | ||
# | #この設定を有効にすると、AFKPlusはEssentialsのAFK状態を更新して、AFKPlusのAFKステートと一致させます | ||
# | #これは、EssentialsがプレイヤーがAFKかどうかをチェックする他のプラグインに役立つ場合があります | ||
EssentialsAFKHook: false | EssentialsAFKHook: false | ||
# | #プレイヤーに警告が表示されたときに再生されるサウンド | ||
# | #サウンドを再生しない場合は、空白に設定してください。例:"" | ||
# | #最新のSpigotバージョンのサウンドのリストは次の場所で利用できます | ||
#https://github.com/CryptoMorin/XSeries/blob/master/src/main/java/com/cryptomorin/xseries/XSound.java#L64 | #https://github.com/CryptoMorin/XSeries/blob/master/src/main/java/com/cryptomorin/xseries/XSound.java#L64 | ||
WarningSound: "ENTITY_PLAYER_LEVELUP" | WarningSound: "ENTITY_PLAYER_LEVELUP" | ||
# | #プレイヤーがAFKになったときに再生されるサウンド | ||
# | #サウンドを再生しない場合は、空白に設定してください | ||
AFKStartSound: "BLOCK_ANVIL_HIT" | AFKStartSound: "BLOCK_ANVIL_HIT" | ||
# | #プレイヤーはワールドとの相互作用がない場合にAFKとしてマークされます | ||
# | #相互作用として何が数えられるべきか? | ||
# | #無視する場合はfalseに設定してください | ||
EnabledDetections: | EnabledDetections: | ||
# | #チャットメッセージの送信 | ||
Chat: true | Chat: true | ||
# | #プレイヤーの頭/体の回転 | ||
Look: true | Look: true | ||
# | #x、y、z方向への移動 | ||
Move: true | Move: true | ||
# | #エンティティの攻撃 | ||
Attack: true | Attack: true | ||
# | #コマンドの実行 | ||
Command: true | Command: true | ||
# | #ブロックの右クリック | ||
Interact: true | Interact: true | ||
# | #ブロックの配置 | ||
BlockPlace: true | BlockPlace: true | ||
# | #ブロックの破壊 | ||
BlockBreak: true | BlockBreak: true | ||
# | #MovementMagnitudeシステムが有効になっている場合、プレイヤーはAFKとみなされる前に特定の距離を移動する必要があります | ||
MovementMagnitude: | MovementMagnitude: | ||
# | #MovementMagnitudeシステムを有効にするかどうか | ||
Enabled: false | Enabled: false | ||
# | #プレイヤーが移動として数えられるためには、1秒あたりにどれだけ移動する必要がありますか | ||
PositionTrigger: 1.0 | PositionTrigger: 1.0 | ||
# | #プレイヤーが見るべき角度は、1秒あたりにどれだけである必要がありますか | ||
LookTrigger: 3.0 | LookTrigger: 3.0 | ||
Protections: | Protections: | ||
# | #有効にすると、AFKプレイヤーはAFKの間xおよびz方向に移動できなくなります。 | ||
# | #これにより、他のプレイヤーがぶつかって彼らをAFKから押し出すのを防ぎます | ||
# | #これはAFKPlusPrefixでよりよく実装されていますが、そのアドオンはすべてのサーバーと互換性があるわけではないため、これは修正の別の実装です | ||
Bump: false | Bump: false | ||
# | #有効にすると、AFKプレイヤーは他のプレイヤーからの攻撃に対して無敵になります | ||
HurtByPlayer: false | HurtByPlayer: false | ||
# | #有効にすると、AFKプレイヤーはモブからの攻撃に対して無敵になります | ||
HurtByMob: true | HurtByMob: true | ||
# | #HurtByPlayerと同じですが、非プレイヤーのダメージをすべて防ぎます | ||
HurtByOther: true | HurtByOther: true | ||
# | #有効にすると、AFKプレイヤーがスポーンの原因となる場合、モブはスポーンしません | ||
# | #これは自然なスポーンとスポナースポーンにのみ適用されます | ||
# | #これは高性能なサーバーで軽微な遅延を引き起こす可能性があります | ||
MobSpawning: false | MobSpawning: false | ||
# | #有効にすると、AFKプレイヤーはモブに対象にされません | ||
MobTargeting: false | MobTargeting: false | ||
# | #プレイヤーのAFKステータスが変更されたときにメッセージを受け取るべき誰か | ||
#Self = | #Self = ステータスが変更されたプレイヤー | ||
#Vanish = | #Vanish = ステータスが変更されたプレイヤーが姿を隠している場合 | ||
Broadcast: | Broadcast: | ||
Console: true | Console: true | ||
131行目: | 131行目: | ||
Vanish: false | Vanish: false | ||
# | #積極的なAFK検出を有効にすると、AFKマシンの対処が厳格化されますが、プレイヤーをAFKとみなすときに単にあまり移動していない場合もあり、プレイヤーの反応時間が遅くなる可能性があります | ||
# | #これはAFK釣り農場などのマシンを使用するプレイヤーに問題がある場合にのみ有効にすべきです | ||
AggressiveAFKDetection: false | AggressiveAFKDetection: false | ||
# | #これをtrueに設定すると、AFKプレイヤーは夜をスキップするかどうかの計算時に無視されます | ||
# | #動作の仕組みについては、次のページを参照してください | ||
#https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#setSleepingIgnored(boolean) | #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#setSleepingIgnored(boolean) | ||
IgnoreAFKPlayersForSleep: true | IgnoreAFKPlayersForSleep: true | ||
# | #権限はtrue/false/valueで指定できます | ||
#0 = | #0 = false、1 = true、または秒数の任意の整数が値になります | ||
# | #例:AFKSelf = 0または1、TimeToAFKは秒数の任意の数値になります | ||
# | #アクションおよび警告の時間はプレイヤーがAFKになってからの時間であり、最後の相互作用からの時間ではありません | ||
# | #以下はデフォルトの値と異なる値をリストする必要はありません | ||
# Default=0, Priority=0, AFKSelf=1, AFKOthers=0, FakeAFK=0, TimeToAFK=30, TimeToWarning=90, TimeToAction=120 and CanUpdate=0 | # Default=0, Priority=0, AFKSelf=1, AFKOthers=0, FakeAFK=0, TimeToAFK=30, TimeToWarning=90, TimeToAction=120, and CanUpdate=0 | ||
Permissions: | Permissions: | ||
afkplus,player: | afkplus,player: | ||
# | #誰がこの権限を持つか、指定しない場合は0 = 誰も、1 = すべてのプレイヤー、2 = Ops | ||
Default: 1 | Default: 1 | ||
# | #複数の権限を持つ場合、最も優先度が高いものが与えられます | ||
Priority: 1 | Priority: 1 | ||
# | #プレイヤーが/afkコマンドを使用して自分をAFKに設定できるかどうか | ||
AFKSelf: 1 | AFKSelf: 1 | ||
# | #プレイヤーが/afkコマンドを使用して他のプレイヤーをAFKに設定できるかどうか | ||
AFKOthers: 0 | AFKOthers: 0 | ||
# | #自動的にAFKに設定されるまでの非アクティビティ秒数 | ||
# | #プレイヤーを自動的にAFKに設定しない場合は-1に設定 | ||
TimeToAFK: 30 | TimeToAFK: 30 | ||
# | #プレイヤーにアクションが起こる前に警告が表示されるまでのAFK秒数 | ||
# | #この権限の警告を無効にする場合は-1に設定 | ||
TimeToWarning: 90 | TimeToWarning: 90 | ||
# | #プレイヤーにアクションが起こる前にAFKになるまでのAFK秒数 | ||
# | #この権限のアクションを無効にする場合は-1に設定 | ||
TimeToAction: 120 | TimeToAction: 120 | ||
# | #プレイヤーが新しいバージョンをインストールするためにupdateコマンドを使用できるかどうか | ||
CanUpdate: 0 | CanUpdate: 0 | ||
afkplus,vip: | afkplus,vip: | ||
# | #複数の権限を持つ場合、最も優先度が高いものが与えられます | ||
Priority: 2 | Priority: 2 | ||
# | #自動的にAFKに設定されるまでの非アクティビティ秒数 | ||
# | #プレイヤーを自動的にAFKに設定しない場合は-1に設定 | ||
TimeToAFK: 60 | TimeToAFK: 60 | ||
# | #プレイヤーにアクションが起こる前に警告が表示されるまでのAFK秒数 | ||
# | #この権限の警告を無効にする場合は-1に設定 | ||
TimeToWarning: 120 | TimeToWarning: 120 | ||
# | #プレイヤーにアクションが起こる前にAFKになるまでのAFK秒数 | ||
# | #この権限のアクションを無効にする場合は-1に設定 | ||
TimeToAction: 150 | TimeToAction: 150 | ||
afkplus,admin: | afkplus,admin: | ||
# | #誰がこの権限を持つか、指定しない場合は0 = 誰も、1 = すべてのプレイヤー、2 = Ops | ||
Default: 2 | Default: 2 | ||
# | #複数の権限を持つ場合、最も優先度が高いものが与えられます | ||
Priority: 3 | Priority: 3 | ||
# | #プレイヤーが/afkコマンドを使用して他のプレイヤーをAFKに設定できるかどうか | ||
AFKOthers: 1 | AFKOthers: 1 | ||
# | #他のプレイヤーから隠れるためにFakeAFK状態を有効にできるかどうか | ||
FakeAFK: 1 | FakeAFK: 1 | ||
# | # プレイヤーが自動的にAFKに設定される前に何秒間の不活動が必要か | ||
# | # -1に設定するとプレイヤーは自動的にAFKに設定されません | ||
TimeToAFK: 90 | TimeToAFK: 90 | ||
# | # プレイヤーが警告を受ける前に何秒間のAFKが必要か | ||
# | # -1に設定するとこの権限に対する警告が無効になります | ||
TimeToWarning: -1 | TimeToWarning: -1 | ||
# | # プレイヤーがアクションを受ける前に何秒間のAFKが必要か | ||
# | # -1に設定するとこの権限に対するアクションが無効になります | ||
TimeToAction: -1 | TimeToAction: -1 | ||
# | # このプレイヤーが新しいバージョンをインストールするためにupdateコマンドを使用できるかどうか | ||
CanUpdate: 1 | CanUpdate: 1 | ||
</syntaxhighlight> | </syntaxhighlight> |
2023年11月19日 (日) 13:08時点における最新版
AFKPlusプラグインは、AFK(放置)プレイヤーを検知するプラグインです。LuckPermsからコンテキスト設定でAFKのプレイヤーの権限&プレフィックスなど変更することができます。カスタマイズ性が非常に高いプラグインです。
制作者 | dart |
最新バージョン(2023/11/08) | 3.4.1 |
対応バージョン | 1.19 |
リリース日 | 2017/1/20 |
SpigotMC | SpigotMC-AFK+ |
コマンド
/afk
自分をAFK状態にすることができる。また、自分がAFK中ならばAFKの状態から抜ける。
権限
afkplus.player
AFKコマンドを使用する。
afkplus.vip
プレイヤーにVIPの設定を適用する。
afkplus.admin
管理者用の設定を適応する。
これらの権限について
これらの権限はデフォルトで設定されてあり、configファイルから変更することができます。
Configファイル
※ChatGPTによる翻訳(人間によるチェック済み)
ConfigVersion: 13 #新しいアップデートを確認するかどうか、UpdateDownloadがfalseの場合は動作しません UpdateCheck: true #新しいバージョンが利用可能になったときに自動でダウンロードしてインストールするかどうか UpdateDownload: true #使用しない場合はコマンドを空白にしてください。これらのコマンドはプレイヤーをAFKに設定するプロセス中に実行されます。 #これにより、プレイヤーをテレポートしたり移動させたりすると問題が発生する可能性があります。 #アクションコマンドはプレイヤーを非AFKにするか、サーバーから削除する必要があります Commands: Action: "kick [PLAYER] あなたは長時間AFKでした!" AFKStart: "" AFKStop: "" Warn: "" #アクションコマンドが実行される前にサーバーにプレイヤーがこの数いる必要があります #サーバーがこの制限に達すると、通常のアクション時間を超えてAFKのプレイヤーがキックされます #サーバーがxプレイヤーに達したときにプレイヤーにキックされる旨の警告メッセージを表示することをお勧めします #0に設定すると、プレイヤーは常にアクションが起こるようになります ActionPlayerRequirement: 0 #この設定を有効にすると、AFKPlusはEssentialsのAFK状態を更新して、AFKPlusのAFKステートと一致させます #これは、EssentialsがプレイヤーがAFKかどうかをチェックする他のプラグインに役立つ場合があります EssentialsAFKHook: false #プレイヤーに警告が表示されたときに再生されるサウンド #サウンドを再生しない場合は、空白に設定してください。例:"" #最新のSpigotバージョンのサウンドのリストは次の場所で利用できます #https://github.com/CryptoMorin/XSeries/blob/master/src/main/java/com/cryptomorin/xseries/XSound.java#L64 WarningSound: "ENTITY_PLAYER_LEVELUP" #プレイヤーがAFKになったときに再生されるサウンド #サウンドを再生しない場合は、空白に設定してください AFKStartSound: "BLOCK_ANVIL_HIT" #プレイヤーはワールドとの相互作用がない場合にAFKとしてマークされます #相互作用として何が数えられるべきか? #無視する場合はfalseに設定してください EnabledDetections: #チャットメッセージの送信 Chat: true #プレイヤーの頭/体の回転 Look: true #x、y、z方向への移動 Move: true #エンティティの攻撃 Attack: true #コマンドの実行 Command: true #ブロックの右クリック Interact: true #ブロックの配置 BlockPlace: true #ブロックの破壊 BlockBreak: true #MovementMagnitudeシステムが有効になっている場合、プレイヤーはAFKとみなされる前に特定の距離を移動する必要があります MovementMagnitude: #MovementMagnitudeシステムを有効にするかどうか Enabled: false #プレイヤーが移動として数えられるためには、1秒あたりにどれだけ移動する必要がありますか PositionTrigger: 1.0 #プレイヤーが見るべき角度は、1秒あたりにどれだけである必要がありますか LookTrigger: 3.0 Protections: #有効にすると、AFKプレイヤーはAFKの間xおよびz方向に移動できなくなります。 #これにより、他のプレイヤーがぶつかって彼らをAFKから押し出すのを防ぎます #これはAFKPlusPrefixでよりよく実装されていますが、そのアドオンはすべてのサーバーと互換性があるわけではないため、これは修正の別の実装です Bump: false #有効にすると、AFKプレイヤーは他のプレイヤーからの攻撃に対して無敵になります HurtByPlayer: false #有効にすると、AFKプレイヤーはモブからの攻撃に対して無敵になります HurtByMob: true #HurtByPlayerと同じですが、非プレイヤーのダメージをすべて防ぎます HurtByOther: true #有効にすると、AFKプレイヤーがスポーンの原因となる場合、モブはスポーンしません #これは自然なスポーンとスポナースポーンにのみ適用されます #これは高性能なサーバーで軽微な遅延を引き起こす可能性があります MobSpawning: false #有効にすると、AFKプレイヤーはモブに対象にされません MobTargeting: false #プレイヤーのAFKステータスが変更されたときにメッセージを受け取るべき誰か #Self = ステータスが変更されたプレイヤー #Vanish = ステータスが変更されたプレイヤーが姿を隠している場合 Broadcast: Console: true OtherPlayers: true Self: true Vanish: false #積極的なAFK検出を有効にすると、AFKマシンの対処が厳格化されますが、プレイヤーをAFKとみなすときに単にあまり移動していない場合もあり、プレイヤーの反応時間が遅くなる可能性があります #これはAFK釣り農場などのマシンを使用するプレイヤーに問題がある場合にのみ有効にすべきです AggressiveAFKDetection: false #これをtrueに設定すると、AFKプレイヤーは夜をスキップするかどうかの計算時に無視されます #動作の仕組みについては、次のページを参照してください #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#setSleepingIgnored(boolean) IgnoreAFKPlayersForSleep: true #権限はtrue/false/valueで指定できます #0 = false、1 = true、または秒数の任意の整数が値になります #例:AFKSelf = 0または1、TimeToAFKは秒数の任意の数値になります #アクションおよび警告の時間はプレイヤーがAFKになってからの時間であり、最後の相互作用からの時間ではありません #以下はデフォルトの値と異なる値をリストする必要はありません # Default=0, Priority=0, AFKSelf=1, AFKOthers=0, FakeAFK=0, TimeToAFK=30, TimeToWarning=90, TimeToAction=120, and CanUpdate=0 Permissions: afkplus,player: #誰がこの権限を持つか、指定しない場合は0 = 誰も、1 = すべてのプレイヤー、2 = Ops Default: 1 #複数の権限を持つ場合、最も優先度が高いものが与えられます Priority: 1 #プレイヤーが/afkコマンドを使用して自分をAFKに設定できるかどうか AFKSelf: 1 #プレイヤーが/afkコマンドを使用して他のプレイヤーをAFKに設定できるかどうか AFKOthers: 0 #自動的にAFKに設定されるまでの非アクティビティ秒数 #プレイヤーを自動的にAFKに設定しない場合は-1に設定 TimeToAFK: 30 #プレイヤーにアクションが起こる前に警告が表示されるまでのAFK秒数 #この権限の警告を無効にする場合は-1に設定 TimeToWarning: 90 #プレイヤーにアクションが起こる前にAFKになるまでのAFK秒数 #この権限のアクションを無効にする場合は-1に設定 TimeToAction: 120 #プレイヤーが新しいバージョンをインストールするためにupdateコマンドを使用できるかどうか CanUpdate: 0 afkplus,vip: #複数の権限を持つ場合、最も優先度が高いものが与えられます Priority: 2 #自動的にAFKに設定されるまでの非アクティビティ秒数 #プレイヤーを自動的にAFKに設定しない場合は-1に設定 TimeToAFK: 60 #プレイヤーにアクションが起こる前に警告が表示されるまでのAFK秒数 #この権限の警告を無効にする場合は-1に設定 TimeToWarning: 120 #プレイヤーにアクションが起こる前にAFKになるまでのAFK秒数 #この権限のアクションを無効にする場合は-1に設定 TimeToAction: 150 afkplus,admin: #誰がこの権限を持つか、指定しない場合は0 = 誰も、1 = すべてのプレイヤー、2 = Ops Default: 2 #複数の権限を持つ場合、最も優先度が高いものが与えられます Priority: 3 #プレイヤーが/afkコマンドを使用して他のプレイヤーをAFKに設定できるかどうか AFKOthers: 1 #他のプレイヤーから隠れるためにFakeAFK状態を有効にできるかどうか FakeAFK: 1 # プレイヤーが自動的にAFKに設定される前に何秒間の不活動が必要か # -1に設定するとプレイヤーは自動的にAFKに設定されません TimeToAFK: 90 # プレイヤーが警告を受ける前に何秒間のAFKが必要か # -1に設定するとこの権限に対する警告が無効になります TimeToWarning: -1 # プレイヤーがアクションを受ける前に何秒間のAFKが必要か # -1に設定するとこの権限に対するアクションが無効になります TimeToAction: -1 # このプレイヤーが新しいバージョンをインストールするためにupdateコマンドを使用できるかどうか CanUpdate: 1