Skip to content

Commit

Permalink
Update feature/commands-rework branch nightly docs to SkriptLang/Skript@
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightly Docs Bot committed Nov 14, 2023
1 parent 2534474 commit 03de049
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 49 deletions.
2 changes: 1 addition & 1 deletion docs/nightly/feature/commands-rework/classes.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/commands-rework/conditions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/commands-rework/docs.html

Large diffs are not rendered by default.

42 changes: 6 additions & 36 deletions docs/nightly/feature/commands-rework/docs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"skriptVersion" : "2.8.0-dev-nightly-4ef9b44",
"skriptVersion" : "2.8.0-dev-nightly-d42fbac",

"classes" : [
{
Expand Down Expand Up @@ -108,7 +108,7 @@
],
"since" : "Unknown",
"description" : "Wool, dye and chat colors.",
"examples" : "color of the sheep is red or black\\nset the color of the block to green\\nmessage \"You're holding a <%color of tool%>%color of tool%<reset> wool block\""
"examples" : "color of the sheep is red or black\\nset the color of the block to green\\nmessage \"You're holding a <%color of tool%>%color of tool%<reset> wool block\""
},
{
"id" : "commandsender",
Expand All @@ -121,7 +121,7 @@
],
"since" : "1.0",
"description" : "A player or the console.",
"examples" : "command /push [<player>]:\\n trigger:\\n if arg-1 is not set:\\n if command sender is console:\\n send \"You can't push yourself as a console :\\\" to sender\\n stop\\n push sender upwards with force 2\\n send \"Yay!\"\\n else:\\n push arg-1 upwards with force 2\\n send \"Yay!\" to sender and arg-1"
"examples" : "command /push [<player>]:\\n trigger:\\n if arg-1 is not set:\\n if command sender is console:\\n send \"You can't push yourself as a console :\\\" to sender\\n stop\\n push sender upwards with force 2\\n send \"Yay!\"\\n else:\\n push arg-1 upwards with force 2\\n send \"Yay!\" to sender and arg-1"
},
{
"id" : "damagecause",
Expand Down Expand Up @@ -2154,19 +2154,6 @@ You can add a tool, which will spawn items based on how that tool would break th
"description" : "Broadcasts a message to the server.",
"examples" : "broadcast \"Welcome %player% to the server!\"\\nbroadcast \"Woah! It's a message!\""
},
{
"id" : "EffCancelCooldown",
"name" : "Cancel Command Cooldown",
"patterns" : [
"(cancel|ignore) [the] [current] [command] cooldown",
"un(cancel|ignore) [the] [current] [command] cooldown",

"pattern_end"
],
"since" : "2.2-dev34",
"description" : "Only usable in commands. Makes it so the current command usage isn't counted towards the cooldown.",
"examples" : "command /nick <text>:\\n executable by: players\\n cooldown: 10 seconds\\n trigger:\\n if length of arg-1 is more than 16:\\n # Makes it so that invalid arguments don't make you wait for the cooldown again\\n cancel the cooldown\\n send \"Your nickname may be at most 16 characters.\"\\n stop\\n set the player's display name to arg-1"
},
{
"id" : "EffCancelDrops",
"name" : "Cancel Drops",
Expand Down Expand Up @@ -3436,7 +3423,7 @@ Do note that other event values, such as 'player', won't work in this section.",
],
"since" : "1.4.1",
"description" : "Called whenever a player chats.\\nUse <a href='./expressions.html#ExprChatFormat'>chat format</a> to change message format.\\nUse <a href='./expressions.html#ExprChatRecipients'>chat recipients</a> to edit chat recipients.",
"examples" : "on chat:\\n if player has permission \"owner\":\\n set chat format to \"&amp;amp;amp;lt;red&amp;amp;amp;gt;[player]&amp;amp;amp;lt;light gray&amp;amp;amp;gt;: &amp;amp;amp;lt;light red&amp;amp;amp;gt;[message]\"\\n else if player has permission \"admin\":\\n set chat format to \"&amp;amp;amp;lt;light red&amp;amp;amp;gt;[player]&amp;amp;amp;lt;light gray&amp;amp;amp;gt;: &amp;amp;amp;lt;orange&amp;amp;amp;gt;[message]\"\\n else: #default message format\\n set chat format to \"&amp;amp;amp;lt;orange&amp;amp;amp;gt;[player]&amp;amp;amp;lt;light gray&amp;amp;amp;gt;: &amp;amp;amp;lt;white&amp;amp;amp;gt;[message]\""
"examples" : "on chat:\\n if player has permission \"owner\":\\n set chat format to \"&amp;amp;amp;amp;amp;lt;red&amp;amp;amp;amp;amp;gt;[player]&amp;amp;amp;amp;amp;lt;light gray&amp;amp;amp;amp;amp;gt;: &amp;amp;amp;amp;amp;lt;light red&amp;amp;amp;amp;amp;gt;[message]\"\\n else if player has permission \"admin\":\\n set chat format to \"&amp;amp;amp;amp;amp;lt;light red&amp;amp;amp;amp;amp;gt;[player]&amp;amp;amp;amp;amp;lt;light gray&amp;amp;amp;amp;amp;gt;: &amp;amp;amp;amp;amp;lt;orange&amp;amp;amp;amp;amp;gt;[message]\"\\n else: #default message format\\n set chat format to \"&amp;amp;amp;amp;amp;lt;orange&amp;amp;amp;amp;amp;gt;[player]&amp;amp;amp;amp;amp;lt;light gray&amp;amp;amp;amp;amp;gt;: &amp;amp;amp;amp;amp;lt;white&amp;amp;amp;amp;amp;gt;[message]\""
},
{
"id" : "chunk_generate",
Expand Down Expand Up @@ -4316,7 +4303,7 @@ Do note that other event values, such as 'player', won't work in this section.",
],
"since" : "2.7",
"description" : "Called when a player enters a chunk. Note that this event is based on 'player move' event, and may be called frequent internally.",
"examples" : "on player enters a chunk:\\n send \"You entered a chunk: %past event-chunk% -&amp;amp;gt; %event-chunk%!\" to player"
"examples" : "on player enters a chunk:\\n send \"You entered a chunk: %past event-chunk% -&amp;amp;amp;amp;gt; %event-chunk%!\" to player"
},
{
"id" : "player_deep_sleep",
Expand Down Expand Up @@ -4611,7 +4598,7 @@ Do note that other event values, such as 'player', won't work in this section.",
],
"since" : "1.0",
"description" : "As signs are placed empty, this event is called when a player is done editing a sign.",
"examples" : "on sign change:\\n line 2 is empty\\n set line 1 to \"&amp;amp;amp;lt;red&amp;amp;amp;gt;%line 1%\""
"examples" : "on sign change:\\n line 2 is empty\\n set line 1 to \"&amp;amp;amp;amp;amp;lt;red&amp;amp;amp;amp;amp;gt;%line 1%\""
},
{
"id" : "slime_split",
Expand Down Expand Up @@ -5705,23 +5692,6 @@ If the command sender is a command block, its location can be retrieved by using
"description" : "Represents the server's console which can receive messages and execute commands",
"examples" : "execute console command \"/stop\"\\nsend \"message to console\" to the console"
},
{
"id" : "ExprCmdCooldownInfo",
"name" : "Cooldown Time/Remaining Time/Elapsed Time/Last Usage/Bypass Permission",
"patterns" : [
"[the] remaining [time] [of [the] (cooldown|wait) [(of|for) [the] [current] command]]",
"[the] elapsed [time] [of [the] (cooldown|wait) [(of|for) [the] [current] command]]",
"[the] ((cooldown|wait) time|[wait] time of [the] (cooldown|wait) [(of|for) [the] [current] command])",
"[the] last usage [date] [of [the] (cooldown|wait) [(of|for) [the] [current] command]]",
"[the] [cooldown] bypass perm[ission] [of [the] (cooldown|wait) [(of|for) [the] [current] command]]",

"pattern_end"
],
"since" : "2.2-dev33",
"description" : "Only usable in command events. Represents the cooldown time, the remaining time, the elapsed time,
the last usage date, or the cooldown bypass permission.",
"examples" : "command /home:\\n cooldown: 10 seconds\\n cooldown message: You last teleported home %elapsed time% ago, you may teleport home again in %remaining time%.\\n trigger:\\n teleport player to {home::%player%}"
},
{
"id" : "ExprCoordinate",
"name" : "Coordinate",
Expand Down
2 changes: 1 addition & 1 deletion docs/nightly/feature/commands-rework/effects.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/commands-rework/events.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/commands-rework/expressions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/commands-rework/functions.html

Large diffs are not rendered by default.

Loading

0 comments on commit 03de049

Please sign in to comment.