plugin

fun plugin(builder: Server.Plugin.Builder.() -> Unit)

Build a Server.Plugin with the builder function then set the plugin.

If plugin is invoked multiple times in a Script, Server.Plugin.then the built Server.Plugins are chained in order of invocation.

Parameters

builder

the function that builds the Server.Plugin