Solved skript keeps commands that i've already deleted.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

FireRoz

Active Member
May 28, 2020
133
6
18
Hey,
I am making a staffchat script and when I got in to do an admin command I just realized it's the same command I have created about 5-6 months ago.
Here's the staffchat code
https://pastebin.com/KgQbB5fc
I don't know I went through the script and I see nothing about the command /sc.
When I do /sc it pops up as the staffchat command. Same format.
When I do /plugman lookup sc (this allows me to check which plugin this command comes from)
and it said there's no command named "/sc".
and if you don't know what that means, it means this command comes from skript.
 
try saving the file, and reloading the skript in-game, if you wrote it a while ago, you may have forgotten to reload it
 
try saving the file, and reloading the skript in-game, if you wrote it a while ago, you may have forgotten to reload it
doesn't work :/
I have also restarted my server and did control + h (shows the files that start with . which are hidden by default)
 
hmmm weird, are you sure you pressed the "save" button in the file?,
yes
another stupid thing that I found.
I solved it.
and then
when you create a command /test [<text>] it will not display the "correct usage: /test [<text>]".
It will just do what it needed to do.
BUT
when I do /staffchat [<text>], it will display "correct usage: /staffchat [<text>]"
and remember, I haven't created any aliases for it.
So when I create /staffchat, it will forcibly create another command named /sc.
 
Try reloading the skript or restarting your server.
I have this problem, but restarting usually fixes it.
 
Try reloading the skript or restarting your server.
I have this problem, but restarting usually fixes it.
doesn't work.

here's info you might find useful
yes
another stupid thing that I found.
I solved it.
and then
when you create a command /test [<text>] it will not display the "correct usage: /test [<text>]".
It will just do what it needed to do.
BUT
when I do /staffchat [<text>], it will display "correct usage: /staffchat [<text>]"
and remember, I haven't created any aliases for it.
So when I create /staffchat, it will forcibly create another command named /sc.
[doublepost=1605729503,1605709309][/doublepost]solved - skript has a bug where when you delete a skript and you're still editing it, it might glitch.
how to solve - create the same command reload the skript.
example -
Code:
command /sc:
  trigger:
    send "&ahahah lol solved" to player
 
Status
Not open for further replies.