This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
component:debug [2018/10/07 03:29] payonel [Component: Debug] |
component:debug [2020/05/22 21:33] forecaster [Component: Debug] |
||
---|---|---|---|
Line 31: | Line 31: | ||
- `isModLoaded(name:string):boolean` | - `isModLoaded(name:string):boolean` | ||
Get whether a mod or API is loaded. | Get whether a mod or API is loaded. | ||
- | - `runCommand(command:string):number` | + | - `runCommand(command:string):number, string` |
- | Runs an arbitrary command using a fake player. | + | Runs an arbitrary command using a fake player. The first return value will be 1 if the command ran successfully, or 0 otherwise. The second return value will contain what the command returned, or an error message. If the command doesn't return anything, such as /me, the second value will be nil. |
- `test():userdata` | - `test():userdata` | ||
Test method for user-data and general value conversion. | Test method for user-data and general value conversion. |