PlugMan icon indicating copy to clipboard operation
PlugMan copied to clipboard

Loaded plugins arent "loaded"

Open JHarris12345 opened this issue 6 years ago • 7 comments

I install a new jew and do /plugman load .

It works, the plugin is now in game because it gives me plugin messages. However if I try and execute any commands from that plugin, it doesnt work.

Also is /plugman unload meant to delete the jar from the server? Because it doesn't, unless it deletes after next restart

JHarris12345 avatar Nov 12 '19 14:11 JHarris12345

Answer to the second question: /plugman unload is not meant to delete the jar from the server, only unload it. The plugin will be loaded again next time the server is started.

What plugin are you trying to load? Some plugins don't support runtime loading and should only be loaded during server-startup. Perhaps you can provide us with a complete log file?

kennyrkun avatar Nov 12 '19 20:11 kennyrkun

Does /plugman disable stop it loading on next restart?

JHarris12345 avatar Nov 12 '19 20:11 JHarris12345

No, /plugman disable does not stop the plugin from loading when the server is started, it simple disables the plugin during server runtime. This is different from /plugman unload which both disables and then unloads the plugin. When the plugin is disabled, it is still loaded on the server, but the server just doesn't let it do anything.

kennyrkun avatar Nov 13 '19 00:11 kennyrkun

So /plugman unload stops the server enabling it on next restart? Different from what the first guy said. Also what about plugman load not having commands for a plugin despite it being installed

JHarris12345 avatar Nov 13 '19 00:11 JHarris12345

/plugman unload both disables and unloads the plugin from the server while it is running. the command does not stop the server from reloading the file the next time it starts. this plugin has no mechanism in place to provide that kind of functionality, all loads/unloads/enables/disables happen during runtime and will not persist across server restarts.

as for plugins not having commands after being loaded using /plugman load, I don't know the cause. I suspect the reason is that your plugin is not being loaded correctly and the commands aren't being registered. however, I cannot confirm this without a specific log file from the server.

kennyrkun avatar Nov 13 '19 19:11 kennyrkun

So what is the difference between /plugin disable and /plugin unload

JHarris12345 avatar Nov 13 '19 20:11 JHarris12345

The server is not aware of the existence of an unloaded plugin -- it has no idea it's even real. The server is aware of disabled plugins, it just ignores them.

For example, plugins that attempt to load at server startup but fail will be disabled by the server. They're still loaded, but the server does not attempt to use them.

If a plugin is not loaded, the server doesn't even touch it's .jar file or named folder.

kennyrkun avatar Nov 13 '19 20:11 kennyrkun