@@ -21,51 +21,43 @@ import IndexLinkCard from "../../../src/components/IndexLinkCard.astro";
2121 <IndexLinkCard
2222 title = " Getting Started"
2323 href = " scripting"
24- icon = " open-book" >
24+ icon = " open-book"
25+ >
2526 Learn about using Skript to customize your server
2627 </IndexLinkCard >
2728 <IndexLinkCard
2829 title = " Syntaxes"
2930 href = " syntaxes"
30- icon = " document" >
31+ icon = " document"
32+ >
3133 Browse a list of all available syntaxes in Skript
3234 </IndexLinkCard >
3335 <IndexLinkCard
3436 title = " API"
3537 href = " api"
36- icon = " puzzle" >
38+ icon = " puzzle"
39+ >
3740 Read tutorials for interacting with Skript's API
3841 </IndexLinkCard >
3942</IndexCardGrid >
4043
41- <div style = " font-size: 1.15em;" >
42- Skript is a scripting plugin for Paper.
43- The syntax of Skript is close to English, but it is still not magic.
44- While you might succeed with experimentation for simple tasks, for anything more complex you will need some guidance.
44+ <div style = " font-size: 1.15rem; margin-bottom: 4rem;" >
45+ <p >
46+ Skript is a scripting plugin for Paper.
47+ The syntax of Skript is close to English, but it is still not magic.
48+ While you might succeed with experimentation for simple tasks, for anything more complex you will need some guidance.
4549
46- This is Skript's documentation. You will find all supported features of the plugin here, along with some useful examples.
50+ This is Skript's documentation. You will find all supported features of the plugin here, along with some useful examples.
51+ </p >
4752</div >
4853
49- ``` applescript
50- command /sethome:
51- permission: skript.home # Permission required for this command
52- description: Set your home # Description of this command
53- executable by: players # Console won't be able to run this command
54- trigger: # The actual trigger/code that will run when someone do /sethome
55- # Set a unique variable to sender's location
56- set {home::%uuid of player%} to location of player
57- # Send a message to the sender
58- message "Set your home to <grey>%location of player%<reset>"
54+ import {CardGrid } from " @astrojs/starlight/components" ;
55+ import GitHubReleaseCard from " ../../components/GitHubReleaseCard.astro" ;
56+ import {getEntry } from " astro:content" ;
5957
60- command /home:
61- permission: skript.home
62- description: Teleport yourself to your home
63- trigger:
64- # Check if that variable we used in /sethome has been set (in other words, if player ever ran /sethome)
65- if {home::%uuid of player%} is not set:
66- message "You have not set your home yet!"
67- stop trigger # stop the code here, lines below won't run
68- # Teleport the player to their home
69- teleport player to {home::%uuid of player%}
70- send "&aYou have been teleported."
71- ```
58+ <CardGrid >
59+ <GitHubReleaseCard id = ' Skript/latestStable' title = " Latest Stable Release" />
60+ { ((await getEntry (' githubReleaseBodies' , ' Skript/latest' )).data .prerelease ) && (
61+ <GitHubReleaseCard id = ' Skript/latest' title = " Latest Release" />
62+ )}
63+ </CardGrid >
0 commit comments