Skip to content

Commit 1801853

Browse files
committed
feat: add revive and gods privileged commands
1 parent e70464e commit 1801853

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ These commands are only available when the user is host.
170170
| Spawn enem(ies) on player | `/spawn <enemy> <player> <amount=1>` |
171171
| Give or take credit(s) | `/credit <amount>` |
172172
| Eject all players | `/eject` |
173+
| Revive all players | `/revive` |
174+
| Toggle God mode for all | `/gods` |
173175

174176
## Special Commands
175177

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
using Hax;
2+
3+
[PrivilegedCommand("gods")]
4+
class GodsCommand : ICommand {
5+
public void Execute(StringArray args) => Helper.StartOfRound?.Debug_ToggleAllowDeathServerRpc();
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
using Hax;
2+
3+
[PrivilegedCommand("revive")]
4+
class ReviveCommand : ICommand {
5+
public void Execute(StringArray args) => Helper.StartOfRound?.Debug_ReviveAllPlayersServerRpc();
6+
}

0 commit comments

Comments
 (0)