Skip to content

Commit 0e730c7

Browse files
committed
update reference
1 parent cbf486b commit 0e730c7

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

reference.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ order: 95
55

66
# Reference
77

8+
==- Core Components
9+
Libraries and utilities exposed to the script environment.
10+
11+
{.list-icon}
12+
- **Core Libraries**
13+
- :icon-package: [`string`](https://devdocs.io/lua/index#6.4)
14+
- :icon-package: [`table`](https://devdocs.io/lua/index#6.6)
15+
- :icon-package: [`math`](https://devdocs.io/lua/index#6.7)
16+
- :icon-package: [`io`](https://devdocs.io/lua/index#6.8)
17+
- :icon-package: [`os`](https://devdocs.io/lua/index#6.9)
18+
- :icon-package: [`java`](https://gudzpoz.github.io/luajava/api.html)
19+
- **Core Functions**
20+
- :icon-code: [`pcall`](https://devdocs.io/lua/index#pdf-pcall)
21+
- :icon-code: [`assert`](https://devdocs.io/lua/index#pdf-assert)
22+
- :icon-code: [`error`](https://devdocs.io/lua/index#pdf-error)
23+
- :icon-code: [`type`](https://devdocs.io/lua/index#pdf-type)
24+
- :icon-code: [`pairs`](https://devdocs.io/lua/index#pdf-pairs)
25+
- :icon-code: [`ipairs`](https://devdocs.io/lua/index#pdf-ipairs)
26+
- :icon-code: [`next`](https://devdocs.io/lua/index#pdf-next)
27+
- :icon-code: [`select`](https://devdocs.io/lua/index#pdf-select)
28+
- :icon-code: [`tonumber`](https://devdocs.io/lua/index#pdf-tonumber)
29+
- :icon-code: [`tostring`](https://devdocs.io/lua/index#pdf-tostring)
30+
- :icon-code: [`unpack`](https://devdocs.io/lua/index#pdf-unpack)
31+
- :icon-code: [`require`](https://devdocs.io/lua/index#pdf-require)
32+
==-
33+
834
=== Script
935
Main script class available in the global scope of each script. Provides access to various utilities.
1036
```lua Variables
@@ -28,6 +54,7 @@ script:registerCommand(handler: (sender: CommandSender, args: table) -> void, me
2854
-- @param handler The event handler function
2955
script:registerListener(event: string, handler: (event: Event) -> void): void
3056
```
57+
===
3158

3259
=== Scheduler
3360
Provides methods to schedule and manage tasks. It supports both synchronous and asynchronous task execution with various timing options.
@@ -69,3 +96,4 @@ scheduler:runRepeatingAsync(handler: (BukkitRunnable) -> void, delay: number, pe
6996
-- @param task The task to cancel
7097
scheduler:cancel(taskId: number | runnable: BukkitRunnable | task: BukkitTask): void
7198
```
99+
===

0 commit comments

Comments
 (0)