lua - tsukinoko-kun/papermc-web-api GitHub Wiki
Use the /lua
route to execute a Lua script.
Example
/lua?script=print("hello%20world")
executes the following Lua code:
print("hello world")
You need the permission io.frankmayer.papermcwebapi.lua
to specify Lua code.
You don't need this permission to run a registered function by specifying its name.
If the function is named test
you can run this script using /lua?script=test
.