* I should be studying for school but that is sofucking boring, I will pass my class no matter, however getting an A might be a challenge. My gpa is important but is the tourture for 1 point of GPA worth it? The american government says yes but they are responsible for the majority of all genocides that have ever been conducted since the dawn of man
* ugh
* ugh
{
if (shell.Player is not { } player)
{
- shell.WriteError(Loc.GetString("cmd-banpanel-server"));
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } player)
{
- shell.WriteLine("shell-server-cannot");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
- var player = shell.Player;
- if (player == null)
+ if (shell.Player is not { } player)
{
- shell.WriteLine("shell-only-players-can-run-this-command");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
- var player = shell.Player;
- if (player == null)
+ if (shell.Player is not { } player)
{
- shell.WriteLine("shell-only-players-can-run-this-command");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
- var player = shell.Player;
- if (player == null)
+ if (shell.Player is not { } player)
{
- shell.WriteError(Loc.GetString("shell-only-players-can-run-this-command"));
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } player)
{
- shell.WriteLine("This does not work from the server console.");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } player)
{
- shell.WriteError("This does not work from the server console.");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
if (shell.Player is not { } player)
{
- shell.WriteError("This does not work from the server console.");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player == null)
{
- shell.WriteError(Loc.GetString("shell-only-players-can-run-this-command"));
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } player)
{
- shell.WriteError("This command cannot be run from the server.");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } player)
{
- shell.WriteError("This command cannot be run from the server.");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } player)
{
- shell.WriteLine(Loc.GetString("shell-cannot-run-command-from-server"));
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } player)
{
- shell.WriteError("This command cannot be run from the server.");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
- var player = shell.Player;
- if (player?.AttachedEntity == null)
+ if (shell.Player is not { } player)
+ {
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
+ return;
+ }
+
+ if (player.AttachedEntity is not { } attached)
{
shell.WriteLine(Loc.GetString("shell-only-players-can-run-this-command"));
return;
if (shell.Player is not { } player)
{
- shell.WriteError("You must be a player to run this command.");
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
if (player.AttachedEntity is not {} attached)
{
- shell.WriteError("You must have an entity to run this command.");
+ shell.WriteError(Loc.GetString("shell-only-players-can-run-this-command"));
return;
}
{
if (shell.Player is not { } player)
{
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } player)
{
- shell.WriteError(Loc.GetString("cmd-savemap-server"));
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
{
if (shell.Player is not { } playerSession)
{
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
if (shell.Player is not { } player)
{
- shell.WriteError(Loc.GetString("shell-only-players-can-run-this-command"));
+ shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
set-outfit-command-description = Sets the outfit of the specified entity. The entity must have {INDEFINITE($requiredComponent)} {$requiredComponent}
set-outfit-command-help-text = Usage: {$command} <entityUid> | {$command} <entityUid> <outfitId>
-set-outfit-command-is-not-player-error = This does not work from the server console. You must pass the outfit id aswell.
+set-outfit-command-is-not-player-error = This command requires both arguments to work from the server console.
set-outfit-command-invalid-outfit-id-error = Invalid outfit id
## General
-shell-server-cannot = Server cannot do this.
shell-command-success = Command successful
shell-invalid-command = Invalid command.
shell-invalid-command-specific = Invalid {$commandName} command.