mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
add /summon strings
This commit is contained in:
1 parent
957805a98a
commit
f53d04cc13
2 files changed
+7
-4
No files matched your search
@@ -229,7 +229,7 @@ internal static class ChatCommands
|
||||
new("UIScale", "{scale}", GetString("CommandDescription.UIScale"), Command.UsageLevels.Modded, Command.UsageTimes.Always, UIScaleCommand, true, false, [GetString("CommandArgs.UIScale.Scale")]),
|
||||
new("Fabricate", "{deathreason}", GetString("CommandDescription.Fabricate"), Command.UsageLevels.Everyone, Command.UsageTimes.InMeeting, FabricateCommand, true, true, [GetString("CommandArgs.Fabricate.DeathReason")]),
|
||||
new("Start", "", GetString("CommandDescription.Start"), Command.UsageLevels.HostOrModerator, Command.UsageTimes.InLobby, StartCommand, false, false),
|
||||
new("Summon", "{id}", GetString("CommandDescription.Summon"), Command.UsageLevels.Everyone, Command.UsageTimes.InMeeting, SummonCommand, true, true),
|
||||
new("Summon", "{id}", GetString("CommandDescription.Summon"), Command.UsageLevels.Everyone, Command.UsageTimes.InMeeting, SummonCommand, true, true, [GetString("CommandArgs.Summon.Id")]),
|
||||
|
||||
new("ConfirmAuth", "{uuid}", GetString("CommandDescription.ConfirmAuth"), Command.UsageLevels.Everyone, Command.UsageTimes.Always, ConfirmAuthCommand, true, false, [GetString("CommandArgs.ConfirmAuth.UUID")]),
|
||||
|
||||
@@ -404,7 +404,7 @@ internal static class ChatCommands
|
||||
|
||||
if (text.StartsWith('/'))
|
||||
{
|
||||
Utils.CheckServerCommand(ref text, out _);
|
||||
Utils.CheckServerCommand(ref text, out bool spamRequired);
|
||||
string[] args = text.Split(' ');
|
||||
|
||||
foreach (Command command in Command.AllCommands)
|
||||
@@ -420,13 +420,13 @@ internal static class ChatCommands
|
||||
if (!AmongUsClient.Instance.AmHost && command.UsageLevel != Command.UsageLevels.Modded && command.Key != "ChemistInfo")
|
||||
{
|
||||
RequestCommandProcessingFromHost(text, command.Key);
|
||||
if (command.IsCanceled) goto Canceled;
|
||||
if (command.IsCanceled || command.AlwaysHidden || !spamRequired) goto Canceled;
|
||||
break;
|
||||
}
|
||||
|
||||
command.Action(PlayerControl.LocalPlayer, text, args);
|
||||
|
||||
if (command.IsCanceled) goto Canceled;
|
||||
if (command.IsCanceled || command.AlwaysHidden || !spamRequired) goto Canceled;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -8846,6 +8846,7 @@
|
||||
"CommandArgs.SetRole.Id": "The player's ID whose role you want to set",
|
||||
"CommandArgs.SetRole.Role": "The role to set",
|
||||
"CommandArgs.Spectate.Id": "The player's ID who will be forced to spectate (leave blank to use it on yourself)",
|
||||
"CommandArgs.Summon.Id": "The player's ID to summon (revive) after the meeting",
|
||||
"CommandArgs.Swap.Id": "The player's ID whose vote will be swapped with the other player you set",
|
||||
"CommandArgs.Target.Id": "The player's ID to target",
|
||||
"CommandArgs.Template.Tag": "The tag of the template to send",
|
||||
@@ -8946,6 +8947,7 @@
|
||||
"CommandDescription.SetRole": "Set a player's role/add-on for the next game",
|
||||
"CommandDescription.Spectate": "Makes you a spectator for the next game. You should just enable Game Master as the host.",
|
||||
"CommandDescription.Start": "Starts the game",
|
||||
"CommandDescription.Summon": "Summon a player to kill for you as the Summoner",
|
||||
"CommandDescription.Swap": "Set a (vote-) swap target as the Swapper",
|
||||
"CommandDescription.TPIn": "Teleport into the lobby",
|
||||
"CommandDescription.TPOut": "Teleport out of the lobby",
|
||||
@@ -9051,6 +9053,7 @@
|
||||
"CommandForms.SetRole": "setrole,setaddon",
|
||||
"CommandForms.Spectate": "spectate",
|
||||
"CommandForms.Start": "start",
|
||||
"CommandForms.Summon": "summon",
|
||||
"CommandForms.Swap": "sw,swap,st",
|
||||
"CommandForms.TPIn": "tpin",
|
||||
"CommandForms.TPOut": "tpout",
|
||||
|
||||
Reference in new issue
Block a user