PluginSystem class final

Constructors

PluginSystem({required ServerInterface server})

Properties

hashCode → int
The hash code for this object.
no setterinherited
plugins → Iterable<String>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
server → ServerInterface
final

Methods

closeAll() → Future<void>
collectState() → Future<void>
dispose([bool disposeNative = true]) → void
fire(Event<WorldEvent> event) → Future<void>
loadGameMode(AssetManager assetManager, ItemLocation? location) → Future<SetonixPlugin?>
loadLuaPluginFromLocation(AssetManager assetManager, ItemLocation location, [String name = 'game']) → Future<SetonixPlugin?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerLuauPlugin(String name, String code, {ItemLocation? location, String? storageKey}) → Future<SetonixPlugin>
registerPlugin(String name, FutureOr<SetonixPlugin> pluginBuilder(PluginServerInterface)) → Future<SetonixPlugin>
runLeaveCallback(Channel channel, ConnectionInfo info) → void
runPing(HttpRequest request, GameProperty property) → GameProperty
toString() → String
A string representation of this object.
inherited
unregisterAll() → void
unregisterPlugin(String name) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited