summaryrefslogtreecommitdiffstats
path: root/source/PluginManager.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-28 21:36:01 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-28 21:36:01 +0200
commitcc5c56d545c0735d28a99b89d4970bd507608f7f (patch)
treed7d803c788aff3d53935d8ef9ac01b70a3dbe922 /source/PluginManager.cpp
parentMerge pull request #2 from tigerw/bugfixes (diff)
downloadcuberite-cc5c56d545c0735d28a99b89d4970bd507608f7f.tar
cuberite-cc5c56d545c0735d28a99b89d4970bd507608f7f.tar.gz
cuberite-cc5c56d545c0735d28a99b89d4970bd507608f7f.tar.bz2
cuberite-cc5c56d545c0735d28a99b89d4970bd507608f7f.tar.lz
cuberite-cc5c56d545c0735d28a99b89d4970bd507608f7f.tar.xz
cuberite-cc5c56d545c0735d28a99b89d4970bd507608f7f.tar.zst
cuberite-cc5c56d545c0735d28a99b89d4970bd507608f7f.zip
Diffstat (limited to '')
-rw-r--r--source/PluginManager.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp
index 93ee71926..862c6d32b 100644
--- a/source/PluginManager.cpp
+++ b/source/PluginManager.cpp
@@ -95,7 +95,7 @@ void cPluginManager::FindPlugins(void)
void cPluginManager::ReloadPluginsNow(void)
{
- LOG("Loading plugins");
+ LOG("-- Loading Plugins --");
m_bReloadPlugins = false;
UnloadPluginsNow();
@@ -135,11 +135,15 @@ void cPluginManager::ReloadPluginsNow(void)
if (GetNumPlugins() == 0)
{
- LOG("No plugins loaded");
+ LOG("-- No Plugins Loaded --");
+ }
+ else if ((GetNumPlugins() > 1) || (GetNumPlugins() == 0))
+ {
+ LOG("-- Loaded %i Plugins --", GetNumPlugins());
}
else
{
- LOG("Loaded %i plugin(s)", GetNumPlugins());
+ LOG("-- Loaded 1 Plugin --");
}
}