Skip to content

Commit 98fec74

Browse files
sovdeethgitbook-bot
authored andcommitted
GITBOOK-72: change request with no subject merged in GitBook
1 parent 5f743a4 commit 98fec74

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

introduction/the-basics.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ First things first, we need somewhere to write our code. Inside the `plugins/Skr
1212
Any text editor works fine for writing Skript. Some, like Atom, Sublime Text, and Visual Studio Code have themes or extensions that highlight Skript's syntax to make it easier to read.
1313
{% endhint %}
1414

15+
### Reloading Scripts
16+
17+
Every time you make changes to a script file, you'll want to first save your file and then run a `/skript reload` command on the server.
18+
19+
You can reload multiple different things depending on the arguments you give this command:
20+
21+
* `/skript reload path/to/your-script[.sk]` reloads a single script file.
22+
* e.g. `/skript reload test.sk` or `/skript reload systems/enchantments`
23+
* `/skript reload directory/` will reload an entire directory of scripts.
24+
* `/skript reload scripts` will reload ALL of your scripts.
25+
* `/skript reload config` will reload your config file.
26+
* `/skript reload aliases` will reload your aliases.
27+
* `/skript reload all` will reload your config file, aliases, and all scripts.
28+
29+
{% hint style="warning" %}
30+
Get in the habit of reloading specific scripts. Using `reload all` adds a lot of unnecessary reload time to your workflow. No need to wait 10 seconds when you could be waiting 50 milliseconds instead.
31+
{% endhint %}
32+
1533
### Writing a Simple Command
1634

1735
Let's start with a simple command, /food. We don't want our players to go hungry, so when they run the command we'll fill up their hunger bar for them. We start by writing out the syntax for a new command. If you want to know more about this, you can skip to [Custom Commands](../core-concepts/commands.md), but most of it isn't necessary yet.

0 commit comments

Comments
 (0)