Jump to content

I made a server and I'm trying to make a /rules command with Skript. Can anyone help?


Horiamic

Recommended Posts

command /rules:
    usage: /rules
    trigger:
        send "&6----------------------------"
        send "&7These are some ground rules of the server:"
        send "1. No hacking/exploting. This will get you banned from the server"
        send "2. No killing someone while they're afk or afk farming. This will get you hunted down"
        send "3. No greifing/killing spawn. This will get you hunted down"
        send "&6----------------------------" 
Current not working command ^^

Edited by Horiamic
Link to comment
Share on other sites

20 hours ago, Horiamic said:

command /rules:
    usage: /rules
    trigger:
        send "&6----------------------------"
        send "&7These are some ground rules of the server:"
        send "1. No hacking/exploting. This will get you banned from the server"
        send "2. No killing someone while they're afk or afk farming. This will get you hunted down"
        send "3. No greifing/killing spawn. This will get you hunted down"
        send "&6----------------------------" 
Current not working command ^^

i parsed it with no issues? Also send the errors

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

I just checked console when opening up my Minehut server and Skript said this:

 

[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 4 spaces (Rules.sk, line 3: trigger:')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found '____->' [-> = tab, _ = space, ? = other whitespace] (Rules.sk, line 4: send "&6----------------------------"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 5: send "&7These are some ground rules of the server:"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 6: send "1. No hacking/exploting. This will get you banned from the server"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 7: send "2. No killing someone while theyre afk or afk farming. This will get you hunted down"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 8: send "3. No greifing/killing in spawn. This will get you hunted down"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 9: send "&6----------------------------"')
[17:27:07 ERROR]: [Skript] Required entry 'trigger' is missing in 'command /rules' (Rules.sk, starting at line 1) (Rules.sk, line 2: usage: /rules')



When I try to use the command it just says that it dosent exist and that I should use /help
Edited by Horiamic
Link to comment
Share on other sites

1 hour ago, Horiamic said:

I just checked console when opening up my Minehut server and Skript said this:

 

[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 4 spaces (Rules.sk, line 3: trigger:')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found '____->' [-> = tab, _ = space, ? = other whitespace] (Rules.sk, line 4: send "&6----------------------------"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 5: send "&7These are some ground rules of the server:"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 6: send "1. No hacking/exploting. This will get you banned from the server"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 7: send "2. No killing someone while theyre afk or afk farming. This will get you hunted down"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 8: send "3. No greifing/killing in spawn. This will get you hunted down"')
[17:27:07 ERROR]: [Skript] indentation error: expected 1 tab, but found 8 spaces (Rules.sk, line 9: send "&6----------------------------"')
[17:27:07 ERROR]: [Skript] Required entry 'trigger' is missing in 'command /rules' (Rules.sk, starting at line 1) (Rules.sk, line 2: usage: /rules')



When I try to use the command it just says that it dosent exist and that I should use /help

make sure everything is indented correctly (use tabs)

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Heres your skript, but indented.

 

command /rules:
    usage: /rules
    trigger:
        send "&6----------------------------"
        send "&7These are some ground rules of the server:"
        send "1. No hacking/exploting. This will get you banned from the server"
        send "2. No killing someone while they're afk or afk farming. This will get you hunted down"
        send "3. No greifing/killing spawn. This will get you hunted down"
        send "&6----------------------------" 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...