mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-24 12:23:52 +00:00
Added enablePlugin() and disablePlugin() (#13)
* Exposed loaded plugins in FourKitHost with public getLoadedPlugins() * Fixed bad reference to ServerPlugins * Forgot that the PluginLoader was nullable, handled it * Implemented getPlugin(name) and getPlugins() in FourKit.cs * Implemented enablePlugin(plugin) and disablePlugin(plugin) in FourKit.cs --------- Co-authored-by: UniPM <zoc6x8voc@mozmail.com>
This commit is contained in:
parent
18a673bd46
commit
94bed94d00
3 changed files with 54 additions and 31 deletions
|
|
@ -7,9 +7,9 @@ namespace Minecraft.Server.FourKit;
|
|||
|
||||
public static partial class FourKitHost
|
||||
{
|
||||
private static PluginLoader? s_loader;
|
||||
internal static PluginLoader? s_loader;
|
||||
|
||||
public static IReadOnlyList<Minecraft.Server.FourKit.Plugin.ServerPlugin> getLoadedPlugins() => s_loader?.Plugins ?? [];
|
||||
public static IReadOnlyList<Plugin.ServerPlugin> getLoadedPlugins() => s_loader?.Plugins ?? [];
|
||||
|
||||
[UnmanagedCallersOnly]
|
||||
public static void Initialize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue