Browse Source

Fix `string`s not useding correct `Text` conversion methods

develop
Anton Tarasenko 2 years ago
parent
commit
739376fbc4
  1. 6
      sources/Commands/ACommandUserData.uc

6
sources/Commands/ACommandUserData.uc

@ -30,7 +30,7 @@ protected function BuildData(CommandDataBuilder builder)
builder.ParamText(P("groupName")) builder.ParamText(P("groupName"))
.OptionalParams() .OptionalParams()
.ParamText(P("dataName")) .ParamText(P("dataName"))
.Describe(P("Reads user data stored for targeted user under group" .Describe(F("Reads user data stored for targeted user under group"
@ "{$TextEmphasis `groupName`} and name" @ "{$TextEmphasis `groupName`} and name"
@ "{$TextEmphasis `dataName`}. If {$TextEmphasis `dataName`} is" @ "{$TextEmphasis `dataName`}. If {$TextEmphasis `dataName`} is"
@ "omitted, the data inside the whjole group will be read.")); @ "omitted, the data inside the whjole group will be read."));
@ -38,7 +38,7 @@ protected function BuildData(CommandDataBuilder builder)
.ParamText(P("groupName")) .ParamText(P("groupName"))
.ParamText(P("dataName")) .ParamText(P("dataName"))
.ParamJSON(P("newData")) .ParamJSON(P("newData"))
.Describe(P("Stores new user data {$TextEmphasis `newData`} for" .Describe(F("Stores new user data {$TextEmphasis `newData`} for"
@ "targeted user under group {$TextEmphasis `groupName`} and name" @ "targeted user under group {$TextEmphasis `groupName`} and name"
@ "{$TextEmphasis `dataName`}.")); @ "{$TextEmphasis `dataName`}."));
} }
@ -87,7 +87,7 @@ private final function UserDataRead(
targetPlayer targetPlayer
.BorrowConsole() .BorrowConsole()
.UseColorOnce(_.color.TextFailure) .UseColorOnce(_.color.TextFailure)
.Write(F("There was an internal error with `userdata` command. ")) .Write(P("There was an internal error with `userdata` command. "))
.Write(P("Please report it!")); .Write(P("Please report it!"));
return; return;
} }

Loading…
Cancel
Save