Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tutorial by: 70sOn7
- #
- # This is a tutorial on how to "code" some skripts!
- # First we all want to know on how to make Commands. First we need to enter
- # the text 'command' like this
- command
- # Next we need to enter out command. So like this
- command /chat
- # Then if we want, we will enter variables if you say.
- command /chat <text>
- # Now we are not done with out first line of code! After all variables we need to enter :
- # So like this!
- command /chat <text>:
- # Now we can move onto our permission stuff! This will be our next to lines below our first line.
- # We will need to hit TAB once on both lines. On our seconds line we will enter 'permission:'
- # On the third line we will enter 'permission message:'
- # It should look like this
- command /chat <text>:
- permission:
- permission message:
- # Now we can fill into the right of these lines
- # Permission is the permission they need to access this command. And permission message
- # is the denial message if they dont have the correct permission
- # If you do not want a permission for the command. You dont have to include this part
- # It should look something like this
- command /chat <text>:
- permission: server.chat
- permission message: &cYou do not have the required permission for this command
- # Now we move on to our 4th line. This is including the text 'trigger:'
- # This is when the person has the permission to this command and when they run it.
- # this will happen. We can use different strings for this part. The 4th line also has
- # one TAB too. It should look something like this!
- command /chat <text>:
- permission: server.chat
- permission message: &cYou do not have the required permission for this command
- trigger:
- # That will be all for the 4th line. Now we will move on to the 5th line.
- # These are the strings that run. We will be using the string 'broadcast'
- # And no this isnt [Broadcast]. It is like tellraw.
- # After the string broadcast you enter your text surrounded by quotation marks.
- # What you want to put in the quotation marks is up to you! When you use these
- # strings you need to TAB two times.
- # Im going to show you what this looks like
- command /chat <text>:
- permission: server.chat
- permission message: &cYou do not have the required permission for this command
- trigger:
- broadcast ""
- # I will be filling these quotation marks in for you though.
- # We will be using %player% and %arg-1% First lets understand what they do
- # '%player%' is the player that is executing the command and %arg-1% is the
- # first argument or as I called them variables. In this case %arg-1% will be
- # <text> Now lets fill this string in!'
- command /chat <text>:
- permission: server.chat
- permission message: &cYou do not have the required permission for this command
- trigger:
- broadcast "&a[CHAT] &a%player%&8: &f%arg-1%"
- # Now this is the basics of a skript command. I might post other tutorials on different types of skripts
- # "codings" in the future if this one gets positive feed back. Now this is a basic understanding. You can
- # find more variables on http://en.njol.ch/projects/skript/doc
- # If this helped you then im glad. This is all I have for today. Bye
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement