-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgetting-started.html
More file actions
88 lines (85 loc) · 3.95 KB
/
Copy pathgetting-started.html
File metadata and controls
88 lines (85 loc) · 3.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<h1 id="nav-title">Getting started</h1>
<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 the Skript plugin to the
Minecraft 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.
<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.
<br />
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).
<br />
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 Minecraft server:
<br />
<!-- 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 downloaded the plugin, locate the <code>plugins</code> folder from the root directory of
your Minecraft 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>
<p class="subtitle">
<!-- Separated into paragraph, otherwise it is black text on gray background. -->
For more information see <a href="https://docs.papermc.io/paper/adding-plugins">the Paper tutorial</a>.
</p>
<h2 class="title">Adding the first script</h2>
<p class="subtitle">
Once you have started the server, you should see the folder <code>scripts</code> inside of <code>plugins/Skript</code>
folder.
<br />
Just create <code>a-new-file.sk</code> file with the following example code:
<br />
<pre class="box skript-code-block left-margin">
on click:
message "Hello player!" to player</pre>
</p>
<p class="subtitle">
<!-- Separated into paragraph, otherwise it is black text on gray background. -->
This piece of code displays the message "Hello player!" every time the user "clicks" (i.e. performs the mine action).
For more examples see the <code>examples</code> folder inside <code>plugins/Skript/scripts</code>.
</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>