Skip to content

Commit

Permalink
Updated syntax command tips
Browse files Browse the repository at this point in the history
  • Loading branch information
Pogromca-SCP committed May 27, 2024
1 parent 591f86e commit f692c89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions SLCommandScript/Commands/SyntaxCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ public class SyntaxCommand : ICommand
{ "perm", "Permissions guard:\n#! <permission_names...>\n(guards cannot be placed inside expressions)" },
{ "scope", "Scope guard:\n#? <scope_names...>\n(guards cannot be placed inside expressions)" },
{ "cmd", "Command expression:\n<command_name> <arguments...>" },
{ "if", "If expression:\n[ <expression> if <expression> ]\n[ <expression> else <expression> ]\n[ <expression> if <expression> else <expression> ]" },
{ "foreach", "Foreach expression:\n[ <expression> foreach <iterable_name> ]" },
{ "delay", "Delay expression:\n[ <expression> delayby <time_in_ms> ]\n[ <expression> delayby <time_in_ms> <name_to_use_for_error_log> ]" },
{ "forrandom", "Forrandom expression:\n[ <expression> forrandom <iterable_name> ]\n[ <expression> forrandom <iterable_name> <limit_number_or_percentage> ]\n"
+ "[ <expression> forrandom <iterable_name> else <expression> ]\n[ <expression> forrandom <iterable_name> <limit_number_or_percentage> else <expression> ]" },
{ "seq", "Sequence expression:\n[ <expressions_separated_with_|...> ]" }
{ "if", "If expression:\n[<expression> if <expression>]\n[<expression> else <expression>]\n[<expression> if <expression> else <expression>]" },
{ "foreach", "Foreach expression:\n[<expression> foreach <iterable_name_or_numbers_range>]" },
{ "delay", "Delay expression:\n[<expression> delayby <time_in_ms>]\n[<expression> delayby <time_in_ms> <name_to_use_for_error_log>]" },
{ "forrandom", "Forrandom expression:\n[<expression> forrandom <iterable_name_or_numbers_range>]\n" +
"[<expression> forrandom <iterable_name_or_numbers_range> <limit_number_or_percentage>]\n" +
"[<expression> forrandom <iterable_name_or_numbers_range> else <expression>]\n" +
"[<expression> forrandom <iterable_name_or_numbers_range> <limit_number_or_percentage> else <expression>]" },
{ "seq", "Sequence expression:\n[<expressions_separated_with_|...>]" }
};

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion SLCommandScript/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Plugin
/// <summary>
/// Contains current plugin version.
/// </summary>
public const string PluginVersion = "0.7.0";
public const string PluginVersion = "0.7.1";

/// <summary>
/// Contains plugin description.
Expand Down

0 comments on commit f692c89

Please sign in to comment.