@@ -17,8 +17,8 @@ Scripting runtime is based on **[LuaJava](https://github.com/gudzpoz/luajava)**
1717## Features
1818{.list-icon}
1919- :icon-code-square: Quick and easy scripting with Lua syntax.
20- - :icon-package: Full access to Bukkit API, built-in libraries and ~~ loaded plugins~~ . (work in progress)
21- - :icon-package-dependents: Create your own or load external Java and Lua libraries.
20+ - :icon-package: Full access to Bukkit API, built-in libraries and loaded plugins.
21+ - :icon-package-dependents: Create your own or load external Java ~~ and Lua~~ (work in progress) libraries.
2222- :icon-sync: Loading and unloading of Lua scripts at runtime.
2323- :icon-gear: Built-in utilities to simplify common tasks.
2424
@@ -46,21 +46,17 @@ After you have installed the plugin, you can start writing your first script.
4646- Entry point of the script is a file named ` main.lua ` .
4747
4848``` lua plugins/LuaLink/scripts/my_script/main.lua
49- local Bukkit = import (" org.bukkit.Bukkit" )
50-
5149-- Called after the script has been successfully loaded.
5250script :onLoad (function ()
5351 -- Logging message to the console.
54- script . logger : info (" Hello, World!" )
52+ print (" Hello, World!" )
5553end )
5654
5755```
5856It's quite simple, isn't it? For this particular case, we can simplify it even further by extracting the logic away from the ` onLoad ` block.
5957
6058``` lua plugins/LuaLink/scripts/my_script/main.lua
61- local Bukkit = import (" org.bukkit.Bukkit" )
62-
6359-- Logging message to the console.
64- script . logger : info (" Hello, World!" )
60+ print (" Hello, World!" )
6561```
6662Want to do something more complex? More information on how to write scripts can be found on the ** [ Getting Started] ( getting-started.md ) ** page.
0 commit comments