registerLuauPlugin method
Implementation
Future<SetonixPlugin> registerLuauPlugin(String name, String code) {
if (!_nativeEnabled) throw Exception('Native not enabled');
return registerPlugin(
name,
(pluginServer) => RustSetonixPlugin.build(
(c) => LuauPlugin(code: code, callback: c),
pluginServer,
onPrint: (e) => server.print(e, name),
location: ItemLocation.fromString(name),
),
);
}