-
Notifications
You must be signed in to change notification settings - Fork 12
Add Getting started tutorial and link it between pages #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
65a7c1e
b953eb6
4b32781
34bda59
e7094ee
d14172a
91c42a0
a019287
941e2d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice work! just couple notes:
<p class="subtitle">
Skript requires Spigot to work. You heard it right, CraftBukkit does not work. <a
href="https://papermc.io/">Paper</a>, which is a fork of Spigot, is recommended; it is required for some parts of
Skript to be available.
- </p>
- <p class="subtitle">
Skript supports only the latest patch versions of Minecraft. For example, this means that if 1.16.5 is supported,
then 1.16.4 is not. Testing with all old patch versions is not feasible for us.
</p>
<p class="subtitle">
Skript requires Spigot to work. You heard it right, CraftBukkit does not work. <a
href="https://papermc.io/">Paper</a>, which is a fork of Spigot, is recommended; it is required for some parts of
Skript to be available.
+ <br>
Skript supports only the latest patch versions of Minecraft. For example, this means that if 1.16.5 is supported,
then 1.16.4 is not. Testing with all old patch versions is not feasible for us.
</p> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. I replaced "Paper server", but two occurrences where I would like to leave the "Paper":
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For me, it was a pain to figure out that I needed to use the "Spigot compatible" server. If you are not against, I would keep this information wherever it is possible. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<h1 id="nav-title">Get started</h1> | ||
milanjaros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<div id="content-no-docs" class="no-left-panel"> | ||
<div style="padding-top: 32px;"></div> <!-- Space --> | ||
<p> | ||
To run a custom <code>.sk</code> script from <code>plugins/Skript/scripts</code> you should add Skript plugin to the <a | ||
milanjaros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
href="https://papermc.io/">Paper</a> server. | ||
</p> | ||
<h2 class="title">Requirements</h2> | ||
<p class="subtitle"> | ||
Skript requires Spigot to work. You heard it right, CraftBukkit does not work. <a | ||
href="https://papermc.io/">Paper</a>, which is a fork of Spigot, is recommended; it is required for some parts of | ||
Skript to be available. | ||
</p> | ||
<p class="subtitle"> | ||
Skript supports only the latest patch versions of Minecraft. For example, this means that if 1.16.5 is supported, | ||
then 1.16.4 is not. Testing with all old patch versions is not feasible for us. | ||
</p> | ||
<p class="subtitle"> | ||
Minecraft 1.12 and earlier are not, and will not be supported. New Minecraft versions will be supported as soon as | ||
possible. | ||
</p> | ||
<h2 class="title">Downloading Skript</h2> | ||
<p class="subtitle"> | ||
You can find the downloads for each version with their release notes in the <a | ||
href="https://github.com/SkriptLang/Skript/releases">releases page</a> (scroll down to the Assets section and | ||
download the <code>.jar</code> file). | ||
</p> | ||
<p class="subtitle"> | ||
Two major feature updates are expected each year in January and July, with monthly patches occurring in between. For | ||
full details, please review our <a | ||
href="https://github.com/SkriptLang/Skript/blob/master/CLOCKWORK_RELEASE_MODEL.md">release model</a>. | ||
</p> | ||
<h2 class="title">Adding plugin</h2> | ||
<p class="subtitle"> | ||
Follow these simple steps to add Skript plugin to the Paper server: | ||
</p> | ||
<!-- Sorry, for the !important inline styling, but the subtitle class already overrides the padding and I am not going to do the css clean-up now. --> | ||
<ol class="subtitle" style="padding-left: 52px !important;"> | ||
<li> | ||
Ensure the file you have downloaded ends in <code>.jar</code>. Some plugins also distribute as <code>.zip</code> | ||
files, in which case you will need to extract the file and locate the <code>.jar</code> for your platform. | ||
</li> | ||
<li> | ||
Once you have the plugin downloaded locally, locate the <code>plugins</code> folder from the root directory of | ||
milanjaros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
your Paper server. | ||
</li> | ||
<li> | ||
Drag and drop the plugin file (<code>.jar</code>) into the <code>plugins</code> folder. | ||
</li> | ||
<li> | ||
Restart your server. The plugin should load. | ||
</li> | ||
</ol> | ||
|
||
<p class="subtitle"> | ||
For more information see <a href="https://docs.papermc.io/paper/adding-plugins">the Paper tutorial</a>. | ||
</p> | ||
|
||
<h2 class="title">Adding the frist script</h2> | ||
milanjaros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<p class="subtitle"> | ||
Once you have restarted server, you should see the folder <code>scripts</code> inside of <code>plugins/Skript</code> | ||
milanjaros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
folder. | ||
</p> | ||
<p class="subtitle"> | ||
Just create <code>a-new-file.sk</code> file with a following content: | ||
milanjaros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</p> | ||
<pre class="box skript-code-block left-margin"> | ||
on click: | ||
message "Hello player!" to player</pre> | ||
<p class="subtitle"> | ||
For more examples see the <code>examples</code> folder. | ||
milanjaros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</p> | ||
|
||
<div id="info" class="grid-container padding"> | ||
<div class="grid-item"> | ||
<p class="box-title">Previous step</p> | ||
<p class="box placeholder"><a class="link" href="index.html">Introduction</a></p> | ||
</div> | ||
<div class="grid-item"> | ||
</div> | ||
<div class="grid-item"> | ||
<p class="box-title">Next step</p> | ||
<p class="box placeholder"><a class="link" href="text.html">Text and formatting</a></p> | ||
</div> | ||
</div> | ||
<div style="padding-top: 32px;"></div> <!-- Space --> | ||
</div> |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -59,6 +59,16 @@ <h1 id="nav-title">Documentation</h1> | |||||||||||||||||||||||||
if you're interested in helping out. </p> | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
<div id="info" class="grid-container padding"> | ||||||||||||||||||||||||||
<div class="grid-item"> | ||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||
<div class="grid-item"> | ||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||
<div class="grid-item"> | ||||||||||||||||||||||||||
<p class="box-title">Next step</p> | ||||||||||||||||||||||||||
<p class="box placeholder"><a class="link" href="getting-started.html">Getting started</a></p> | ||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||
</div> | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's make this take the full width instead
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, let me check this first. I'll compare the results. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks better. Done. |
||||||||||||||||||||||||||
<div style="padding-top: 64px;"></div> <!-- Space --> | ||||||||||||||||||||||||||
<p style="font-size: 14px; text-align: center;" class="placeholder"><a href="https://github.com/SkriptLang/skript-docs">Documentation Repo</a> • | ||||||||||||||||||||||||||
Site developed by <a href="https://github.com/AyhamAl-Ali">Ayham Al-Ali</a> • Site Version <b>${site-version}</b> • Generated on <b>${skript.build.date}</b></p> | ||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's remove these changes as we have other plans for a new design for this page :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should specify such things here in case it gets changed later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I may, I would disagree. I found the information in the readme. I'm new to MC development, and I Installed a different and incompatible server because I was missing this information.