summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2014-10-20 16:15:59 +0200
committerAlexander Harkness <me@bearbin.net>2014-10-20 16:15:59 +0200
commit1f301d7560b143ffbd382918c3d8cc6087d16fe1 (patch)
treed0d6b52ad53fe2bff4963de7d84cf048d0255f83
parentMerge pull request #1552 from SphinxC0re/master (diff)
parentFound it! (diff)
downloadcuberite-1f301d7560b143ffbd382918c3d8cc6087d16fe1.tar
cuberite-1f301d7560b143ffbd382918c3d8cc6087d16fe1.tar.gz
cuberite-1f301d7560b143ffbd382918c3d8cc6087d16fe1.tar.bz2
cuberite-1f301d7560b143ffbd382918c3d8cc6087d16fe1.tar.lz
cuberite-1f301d7560b143ffbd382918c3d8cc6087d16fe1.tar.xz
cuberite-1f301d7560b143ffbd382918c3d8cc6087d16fe1.tar.zst
cuberite-1f301d7560b143ffbd382918c3d8cc6087d16fe1.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginManager.cpp2
-rw-r--r--src/Server.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index 0992ccec1..479e71951 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -1827,7 +1827,7 @@ bool cPluginManager::DoWithPlugin(const AString & a_PluginName, cPluginCallback
bool cPluginManager::AddPlugin(cPlugin * a_Plugin)
{
- m_Plugins[a_Plugin->GetDirectory()] = a_Plugin;
+ m_Plugins[a_Plugin->GetDirectory()] = a_Plugin;
if (a_Plugin->Initialize())
{
diff --git a/src/Server.cpp b/src/Server.cpp
index 67315c8cf..db3ab2ed4 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -493,9 +493,9 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
{
cPluginManager::PluginMap map = cPluginManager::Get()->GetAllPlugins();
- for(auto plugin_entry : map)
+ for (auto plugin_entry : map)
{
- if(plugin_entry.first == split[1])
+ if (plugin_entry.first == split[1])
{
a_Output.Out("Error! Plugin is already loaded!");
a_Output.Finished();