summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-19 17:25:48 +0200
committerMattes D <github@xoft.cz>2015-04-19 17:25:48 +0200
commitbe40ea323ad404b4f186a44e60f1926384687e67 (patch)
treece8e88053d44b72f9652ab5412644e0058a502e9
parentAPIDump: Documented cPluginManager:IsPluginLoaded(). (diff)
downloadcuberite-be40ea323ad404b4f186a44e60f1926384687e67.tar
cuberite-be40ea323ad404b4f186a44e60f1926384687e67.tar.gz
cuberite-be40ea323ad404b4f186a44e60f1926384687e67.tar.bz2
cuberite-be40ea323ad404b4f186a44e60f1926384687e67.tar.lz
cuberite-be40ea323ad404b4f186a44e60f1926384687e67.tar.xz
cuberite-be40ea323ad404b4f186a44e60f1926384687e67.tar.zst
cuberite-be40ea323ad404b4f186a44e60f1926384687e67.zip
-rw-r--r--src/Server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 9c5c6b6eb..8b6a2e769 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -464,6 +464,7 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
{
if (split.size() > 1)
{
+ cPluginManager::Get()->RefreshPluginList(); // Refresh the plugin list, so that if the plugin was added just now, it is loadable
a_Output.Out(cPluginManager::Get()->LoadPlugin(split[1]) ? "Plugin loaded" : "Error occurred loading plugin");
}
else