i need help with siteJS
Root / Site Discussion / [.]
IAmRalseiCreated:
Oh sorry, that only works for chat commands. It lets you add a local command to chat; stuff like /cls is a local chat command.
Command is an object that describes a command. The first parameter is the name of the command (so in the example on the editor page, the command is called "time"). The second parameter is a function that describes what to do when you call the command. For instance, the example in the editor prints a system message with the time.
Oh sorry, that only works for chat commands. It lets you add a local command to chat; stuff like /cls is a local chat command. Command is an object that describes a command. The first parameter is the name of the command (so in the example on the editor page, the command is called "time". The second parameter is a function that describes what to do when you time the command. For instance, the example in the editor prints a system message with the time.Oh.