@@ -1073,10 +1073,14 @@ private void ShowInfo(BasePlayer player, string label, string[] args)
1073
1073
plugin . Message (
1074
1074
player ,
1075
1075
string . Format (
1076
- plugin . lang . GetMessage ( "Info" , plugin , player . UserIDString ) ,
1077
- code ?? plugin . lang . GetMessage ( "NotSet" , plugin , player . UserIDString ) ,
1078
- guestCode ?? plugin . lang . GetMessage ( "NotSet" , plugin , player . UserIDString ) ,
1079
- UsageInfo ( label )
1076
+ "{0}\n \n {1}" ,
1077
+ string . Format (
1078
+ plugin . lang . GetMessage ( "Description" , plugin , player . UserIDString ) ,
1079
+ code ?? plugin . lang . GetMessage ( "NotSet" , plugin , player . UserIDString ) ,
1080
+ guestCode ?? plugin . lang . GetMessage ( "NotSet" , plugin , player . UserIDString ) ,
1081
+ plugin . lang . GetMessage ( quietMode ? "Enabled" : "Disabled" , plugin , player . UserIDString )
1082
+ ) ,
1083
+ GetHelp ( player , label )
1080
1084
)
1081
1085
) ;
1082
1086
}
@@ -1090,16 +1094,27 @@ private void SyntaxError(BasePlayer player, string label, string[] args)
1090
1094
player ,
1091
1095
string . Format (
1092
1096
plugin . lang . GetMessage ( "SyntaxError" , plugin , player . UserIDString ) ,
1093
- UsageInfo ( label )
1097
+ GetUsage ( label )
1094
1098
)
1095
1099
) ;
1096
1100
}
1097
1101
1102
+ /// <summary>
1103
+ /// Get help for the "use" command.
1104
+ /// </summary>
1105
+ public string GetHelp ( BasePlayer player , string label )
1106
+ {
1107
+ return string . Format (
1108
+ plugin . lang . GetMessage ( "Help" , plugin , player . UserIDString ) ,
1109
+ GetUsage ( label )
1110
+ ) ;
1111
+ }
1112
+
1098
1113
/// <summary>
1099
1114
/// Show how to use the "use" command.
1100
1115
/// </summary>
1101
1116
/// <returns></returns>
1102
- private string UsageInfo ( string label )
1117
+ private string GetUsage ( string label )
1103
1118
{
1104
1119
return string . Format (
1105
1120
"/{0} <{1}>" ,
0 commit comments