Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
AllPlayerCommands
【Host Only MOD】Host chat commands that execute actions on all participants.ホストが全参加者へ一括実行するチャットコマンドMOD
By REPO_JP
| Last updated | 2 weeks ago |
| Total downloads | 12655 |
| Total rating | 10 |
| Categories | Mods Tools Server-side AI Generated |
| Dependency string | REPO_JP-AllPlayerCommands-4.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2304README
COMPATIBLE WITH COSMETICS UPDATE V0.4.0.
AllPlayerCommands
This mod is a host-only mod that lets the host execute chat commands against all participants from in-game chat. No config is required. Everything is controlled through chat commands.
Overview
AllPlayerCommands hooks the chat send flow and allows the host to run bulk commands against detected PlayerAvatar targets.
It is intended for testing, event play, quick party control, recovery, and debugging.
Version 4.0.0 updates the mod for REPO Cosmetics Update v0.4.0.
It fixes slash commands being sent as normal chat, restores chained short commands, improves large-lobby handling for /sa and /ta, and adds /kill <name> for partial-name targeted kills.
Host-only Behavior
This mod executes commands only when all conditions below are met.
- The sender is the local player
- The local player is the host, Master Client, or singleplayer host
- The chat message starts with
/
If a non-host enters the same commands, the mod does not execute them. Depending on game state, the message may be sent as normal chat.
Installation
- Place
AllPlayerCommands.dllinto your BepInEx plugins folder - Start the game
- Host a lobby or start singleplayer
- Open chat and enter a command
Quick Start
/ra
/ha
/sa
/ta
/kill playername
/kba 10
/dga 25
/hga 50
/exa 4
/ttsa Hello everyone
/tumbleall 3
/hpmaxall 200
/flickerall 2
/animspeedall 0.5 0.05 0.2 3
/pupilall 1.8 10 25 0.8 12 0.8 3
/tumblewingsall pink
/raha
/kara
/karaha
/sata
Full Command Reference
1) Kill All
Kills all detected players.
Aliases.
/ka/killall/killallplayers/killplayerall
Behavior.
- Sends an immediate forced death call to every detected player
- Intended for host-side event control, testing, or quick resets
2) Kill by Partial Name
Kills players whose display name partially matches the text after /kill.
Syntax.
/kill [name]
Examples.
/kill repo
/kill player
Behavior.
- Targets every matching player, not only the first match
- Matching is partial and case-insensitive
- Empty
/killdoes nothing
3) Revive All
Revives all dead players.
Aliases.
/ra/reviveall/reviveallplayers/reviveplayerall
Behavior.
- Only dead players are affected
- Uses the death-head based revive path so the revive is forced cleanly
4) Heal Full All
Fully heals all players.
Aliases.
/ha/healall/healallplayers/healplayerall
Behavior.
- Applies a very large heal amount internally
- Intended to bring all players back to full health quickly
5) Summon All
Teleports all players to the host or the valid host-side destination.
Aliases.
/sa/summonall/summonallplayers/summonplayerall
Behavior.
- Living players are prepared before teleport
- Preparation includes tumble clear, stand-up request, and movement stabilization
- Dead players are moved through the death-head / corpse object when possible
- Execution is batched so large lobbies do not process every target in a single frame
Purpose.
- Gather everyone to the host quickly
- Useful for events, regrouping, debugging, and custom game modes
6) Truck All
Teleports all players to the truck safety spawn point.
Aliases.
/ta/truckall/truckallplayers/returntotruckall
Behavior.
- Living players are prepared before teleport just like Summon All
- Dead players are moved through the death-head / corpse object when possible
- Execution is batched for large lobbies
Purpose.
- Force regroup at the truck
- Reset party position quickly after combat or events
7) Knockback All
Applies knockback to all players.
Aliases.
/kba/knockbackall/knockall/impulseall
Syntax.
/kba [strength]
Parameters.
strength(int, optional, default5)
Examples.
/kba
/kba 15
8) Damage All
Deals damage to all players.
Aliases.
/dga/damageall/hurtall/hitall
Syntax.
/dga [damage]
Parameters.
damage(int, optional, default10)
Examples.
/dga
/dga 30
9) Heal Amount All
Heals all players by a specified amount.
Aliases.
/hga/healamountall/healaddall/healplusall
Syntax.
/hga [amount]
Parameters.
amount(int, optional, default10)
Examples.
/hga
/hga 25
10) Expression All
Changes facial expression index for all players.
Aliases.
/exa/expressionall/faceall/emoteall
Syntax.
/exa [index]
Parameters.
index(int, optional, default4)
Behavior.
- Safely checks expression list bounds before applying
- Useful for synchronized reactions or event scenes
11) TTS All
Makes all players speak a TTS / chat message.
Aliases.
/ttsa/ttsall/sayall/speakall
Syntax.
/ttsa [message]
Parameters.
message(string, optional, defaultHello!!!)
Behavior.
- Sends a message through each player's chat / speech path
- If the message starts with
/, the mod prepends a space to avoid command-style parsing issues
12) Tumble Wings All
Forces tumble wings visuals for all players.
Aliases.
/tumblewingsall/wingsall/wa
Syntax.
/tumblewingsall on
/tumblewingsall off
/tumblewingsall pink
Modes.
on= regular wings visualsoff= disable wings visualspink= pink wings mode with a keep-alive loop
13) Tumble All
Forces tumble state for all players. Supports on, off, or timed mode.
Aliases.
/tba/tumbleall
Syntax.
/tumbleall on
/tumbleall off
/tumbleall [seconds]
Parameters.
seconds(float, optional, default3.0when numeric mode is used)
14) HP Max All
Sets max HP for all players.
Aliases.
/hpmaxall/hpmaxa
Syntax.
/hpmaxall [max]
Parameters.
max(int, optional, default200, minimum1)
15) Flicker All
Triggers flashlight flicker for all players.
Aliases.
/flickerall/flickera
Syntax.
/flickerall [multiplier]
Parameters.
multiplier(float, optional, default2.0, minimum0)
16) Anim Speed All
Overrides animation speed settings for all players via RPC.
Aliases.
/animspeedall/animspeeda/asall/animall
Syntax.
/animspeedall off
/animspeedall [speed] [inSec] [outSec] [time]
Parameters.
speed(float, default0.5)inSec(float, default0.05)outSec(float, default0.2)time(float, default3.0)
17) Pupil All
Overrides pupil size settings for all players via RPC.
Aliases.
/pupilall/pupila/eyesall
Syntax.
/pupilall off
/pupilall [mult] [prio] [springIn] [dampIn] [springOut] [dampOut] [time]
Parameters.
mult(float, default1.8)prio(int, default10)springIn(float, default25)dampIn(float, default0.8)springOut(float, default12)dampOut(float, default0.8)time(float, default3.0)
18) Falling All
Overrides the falling flag for all players via RPC.
Aliases.
/fallingall/fallinga/fallall
Syntax.
/fallingall on
/fallingall off
Behavior.
- No argument defaults to
on
19) Reset Push All
Resets phys pusher state for all players via RPC.
Aliases.
/resetpushall/resetpusha/rpa/pushresetall
Syntax.
/resetpushall
Purpose.
- Useful when players are stuck in odd push / force states
20) Chained Short Commands
Executes multiple short commands in sequence.
Supported tokens.
ra= Revive Allha= Heal Full Allka= Kill Allsa= Summon Allta= Truck All
Syntax examples.
/raha
/kara
/karaha
/sata
/rata
Behavior.
- Chained parsing works with 2-letter tokens and no parameters
- Order is preserved exactly as typed
saandtause the same batched teleport flow as their standalone commands
Examples.
/raha= revive all, then heal all/kara= kill all, then revive all/karaha= kill all, revive all, then heal all/sata= summon all, then truck all
Technical Notes
Player Target Resolution
The mod collects player targets with this strategy.
- First tries the game's player list
- Falls back to searching loaded
PlayerAvatarobjects - De-duplicates by ActorNumber when available
- Falls back to Unity instance ID when ActorNumber is unavailable
This improves reliability across different scenes, player states, and large lobbies.
Batched Execution
Commands that affect many players can be split across frames.
This is especially important for /sa, /ta, and chained commands that include teleport actions.
It reduces the chance of failed teleport application when many participants are present.
Error Handling
The mod uses broad null checks and try/catch blocks around per-player execution.
If one target fails, the remaining players continue.
Logging
Logs use the [AllPlayerCommands] prefix and are written to both.
- Unity console
- BepInEx logger
Notes
- This mod is host-only
- Commands are triggered from chat send events
- No config entries are required in this version
※Mod created by AI
COSMETICS UPDATE V0.4.0対応済み.
AllPlayerCommands
REPOが好きな日本人のための日本人のみのREPOのDiscordサーバーあります! 参加は以下のリンクから! https://discord.gg/h5ATY4m5bZ
このMODは、ホスト専用の、ゲーム内チャットから全参加者へ一括コマンドを実行するMODです。 設定ファイルは不要です。 すべてチャットコマンドで操作します。
概要
AllPlayerCommands はチャット送信処理をフックし、ホストが検出された PlayerAvatar に対して一括コマンドを実行できるようにします。
テスト、イベント進行、パーティー操作、復旧、デバッグ向けです。
Version 4.0.0 では、REPO Cosmetics Update v0.4.0 に対応しました。
/ コマンドが通常チャットとして送信される問題を修正し、連結短縮コマンドを復旧し、/sa と /ta の大人数ロビー対応を改善し、部分一致キル用の /kill <name> を追加しました。
ホスト専用の動作条件
このMODは以下の条件をすべて満たしたときだけコマンドを実行します。
- 送信者がローカルプレイヤー本人
- ローカルプレイヤーがホスト、Master Client、またはシングルプレイのホスト
- チャットメッセージが
/で始まる
非ホストが同じコマンドを入力しても、このMODは実行しません。 ゲーム状態によっては通常チャットとして送信されます。
導入方法
AllPlayerCommands.dllを BepInEx の plugins フォルダに配置- ゲームを起動
- ロビーをホストする、またはシングルプレイを開始
- チャットを開いてコマンドを入力
クイックスタート
/ra
/ha
/sa
/ta
/kill playername
/kba 10
/dga 25
/hga 50
/exa 4
/ttsa Hello everyone
/tumbleall 3
/hpmaxall 200
/flickerall 2
/animspeedall 0.5 0.05 0.2 3
/pupilall 1.8 10 25 0.8 12 0.8 3
/tumblewingsall pink
/raha
/kara
/karaha
/sata
全コマンド詳細
1) Kill All
全プレイヤーを強制死亡させます。
別名。
/ka/killall/killallplayers/killplayerall
挙動。
- 検出された全プレイヤーに対して即時の死亡呼び出しを行います
- ホスト側のイベント進行、テスト、状況リセット向けです
2) 部分一致 Kill
/kill の後ろに書いた文字列と表示名が部分一致するプレイヤーをキルします。
構文。
/kill [name]
使用例。
/kill repo
/kill player
挙動。
- 最初の1人だけではなく、一致した全員が対象です
- 部分一致、大文字小文字無視です
/killだけでは何もしません
3) Revive All
死亡中のプレイヤーを全員蘇生します。
別名。
/ra/reviveall/reviveallplayers/reviveplayerall
挙動。
- 死亡中のプレイヤーだけが対象です
- death head 経由の蘇生処理を使って安全に蘇生します
4) Heal Full All
全員を全回復させます。
別名。
/ha/healall/healallplayers/healplayerall
挙動。
- 内部的には非常に大きい回復量を使って全快にします
5) Summon All
全員をホスト、または有効なホスト側の召喚先へ転送します。
別名。
/sa/summonall/summonallplayers/summonplayerall
挙動。
- 生存者は転送前に準備処理を行います
- 準備にはタンブル解除、立ち上がり要求、移動安定化が含まれます
- 死亡者は可能な場合、death head / 死体オブジェクト経由で移動します
- 大人数ロビーでも1フレーム一括処理にならないよう分割実行します
用途。
- 全員集合
- イベント進行
- デバッグ時の位置合わせ
- カスタムゲームモード
6) Truck All
全員をトラック安全地点へ転送します。
別名。
/ta/truckall/truckallplayers/returntotruckall
挙動。
- 生存者は Summon All と同じように転送前準備を行います
- 死亡者は可能な場合、death head / 死体オブジェクト経由で移動します
- 大人数ロビー向けに分割実行します
用途。
- トラック集合
- 戦闘後のリセット
- パーティー位置の復旧
7) Knockback All
全員にノックバックを与えます。
別名。
/kba/knockbackall/knockall/impulseall
構文。
/kba [strength]
引数。
strength(int、省略可、既定値5)
使用例。
/kba
/kba 15
8) Damage All
全員に指定ダメージを与えます。
別名。
/dga/damageall/hurtall/hitall
構文。
/dga [damage]
引数。
damage(int、省略可、既定値10)
使用例。
/dga
/dga 30
9) Heal Amount All
全員を指定量だけ回復します。
別名。
/hga/healamountall/healaddall/healplusall
構文。
/hga [amount]
引数。
amount(int、省略可、既定値10)
使用例。
/hga
/hga 25
10) Expression All
全員の表情インデックスを設定します。
別名。
/exa/expressionall/faceall/emoteall
構文。
/exa [index]
引数。
index(int、省略可、既定値4)
挙動。
- expression 配列の範囲外アクセスを防いでから適用します
- 同時リアクションやイベント演出向けです
11) TTS All
全員にTTS / チャット発話を行わせます。
別名。
/ttsa/ttsall/sayall/speakall
構文。
/ttsa [message]
引数。
message(string、省略可、既定値Hello!!!)
挙動。
- 各プレイヤーの発話経路でメッセージを送ります
- 先頭が
/の文字列はコマンド誤認防止のため先頭にスペースを足します
12) Tumble Wings All
全員のタンブル羽ビジュアルを強制します。
別名。
/tumblewingsall/wingsall/wa
構文。
/tumblewingsall on
/tumblewingsall off
/tumblewingsall pink
モード。
on= 通常羽表示off= 羽表示無効pink= 維持ループ付きのピンク羽モード
13) Tumble All
全員のタンブル状態を強制します。 ON / OFF / 時間指定に対応しています。
別名。
/tba/tumbleall
構文。
/tumbleall on
/tumbleall off
/tumbleall [seconds]
引数。
seconds(float、省略可、数値モード時の既定値3.0)
14) HP Max All
全員の最大HPを変更します。
別名。
/hpmaxall/hpmaxa
構文。
/hpmaxall [max]
引数。
max(int、省略可、既定値200、最小1)
15) Flicker All
全員のライトをフリッカーさせます。
別名。
/flickerall/flickera
構文。
/flickerall [multiplier]
引数。
multiplier(float、省略可、既定値2.0、最小0)
16) Anim Speed All
全員のアニメ速度上書きを RPC で行います。
別名。
/animspeedall/animspeeda/asall/animall
構文。
/animspeedall off
/animspeedall [speed] [inSec] [outSec] [time]
引数。
speed(float、既定値0.5)inSec(float、既定値0.05)outSec(float、既定値0.2)time(float、既定値3.0)
17) Pupil All
全員の瞳孔サイズ上書きを RPC で行います。
別名。
/pupilall/pupila/eyesall
構文。
/pupilall off
/pupilall [mult] [prio] [springIn] [dampIn] [springOut] [dampOut] [time]
引数。
mult(float、既定値1.8)prio(int、既定値10)springIn(float、既定値25)dampIn(float、既定値0.8)springOut(float、既定値12)dampOut(float、既定値0.8)time(float、既定値3.0)
18) Falling All
全員の落下フラグを RPC で上書きします。
別名。
/fallingall/fallinga/fallall
構文。
/fallingall on
/fallingall off
挙動。
- 引数省略時は
on扱いです
19) Reset Push All
全員の Phys Pusher 状態をリセットします。
別名。
/resetpushall/resetpusha/rpa/pushresetall
構文。
/resetpushall
用途。
- 押し戻しや位置ズレが変になった時の復旧向けです
20) 連結短縮コマンド
短縮コマンドを順番に連続実行します。
対応トークン。
ra= 全員蘇生ha= 全員全回復ka= 全員キルsa= 全員召喚ta= 全員トラック送還
構文例。
/raha
/kara
/karaha
/sata
/rata
挙動。
- 2文字トークンだけで構成された文字列のみ有効です
- 順番は入力通りです
saとtaは単体コマンドと同じ分割転送処理を使います
例。
/raha= 蘇生 → 全回復/kara= キル → 蘇生/karaha= キル → 蘇生 → 全回復/sata= 召喚 → トラック送還
技術メモ
プレイヤー取得方法
対象プレイヤーの取得は次の順です。
- ゲーム側のプレイヤー一覧を優先
- 取得できない場合はロード済み
PlayerAvatarを検索 - 可能な場合は ActorNumber で重複排除
- ActorNumber が取れない場合は Unity instance ID で重複排除
これにより、シーン差分、プレイヤー状態差分、大人数ロビーでの安定性を上げています。
分割実行
多人数に影響するコマンドは複数フレームに分割して実行できます。
特に /sa、/ta、転送系を含む連結コマンドで重要です。
大人数環境で1フレーム一括処理による転送漏れを抑えます。
エラーハンドリング
各プレイヤー処理は広めの null チェックと try/catch で保護されています。
1人で失敗しても残りの対象処理は継続します。
ログ
ログは [AllPlayerCommands] プレフィックスで以下へ出力されます。
- Unity コンソール
- BepInEx ロガー
補足
- このMODはホスト専用です
- コマンド実行はチャット送信イベントから行います
- このバージョンでは設定ファイルは不要です
※AI生成MOD