WorldEditAxe / eaglerproxy

A standalone implemention of the BungeeCord plugin for EaglercraftX, now with online vanilla server support!
38 stars 93 forks source link

do not load plugins if none exist #20

Closed GabeeCoding closed 11 months ago

GabeeCoding commented 11 months ago

when removing all plugins from the plugin folder, the logger outputs Successfully loaded undefined plugin(s).

I 2023-08-12T11:27:36.439Z Launcher: Loading plugins...
I 2023-08-12T11:27:36.451Z PluginManager: Loading plugin metadata files...
I 2023-08-12T11:27:36.479Z PluginManager: Found 0 plugin(s): 
I 2023-08-12T11:27:36.480Z PluginManager: Loading 0 plugin(s)...
I 2023-08-12T11:27:36.534Z PluginManager: Successfully loaded undefined plugin(s).
I 2023-08-12T11:27:36.536Z Launcher: Launching EaglerProxy...
I 2023-08-12T11:27:36.546Z EaglerProxy-0: Starting EaglerProxy v1.0.8...
I 2023-08-12T11:27:36.633Z SkinServer: Started EaglercraftX skin server.
I 2023-08-12T11:27:36.921Z EaglerProxy-0: Started WebSocket server and binded to 0.0.0.0 on port 8080.
W 2023-08-12T11:27:37.357Z EaglerProxy-0: Error polling no:46625 for MOTD: Error: getaddrinfo ENOTFOUND no
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26)

this patch makes it so that if there are 0 plugins detected, it will skip loading plugins.

WorldEditAxe commented 11 months ago

yeah thanks for catching that, I'll merge the pull request

WorldEditAxe commented 11 months ago

oops