summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2014-10-20 15:08:48 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2014-10-20 15:08:48 +0200
commitc2560cc1be9a41dc80733fa8c55b00ec6e15a7f0 (patch)
tree6fa9437a102961ff1e7884aef7f7f9dfd90d2a9f /src/Bindings
parentAdded error handling to load <plugin> command (diff)
downloadcuberite-c2560cc1be9a41dc80733fa8c55b00ec6e15a7f0.tar
cuberite-c2560cc1be9a41dc80733fa8c55b00ec6e15a7f0.tar.gz
cuberite-c2560cc1be9a41dc80733fa8c55b00ec6e15a7f0.tar.bz2
cuberite-c2560cc1be9a41dc80733fa8c55b00ec6e15a7f0.tar.lz
cuberite-c2560cc1be9a41dc80733fa8c55b00ec6e15a7f0.tar.xz
cuberite-c2560cc1be9a41dc80733fa8c55b00ec6e15a7f0.tar.zst
cuberite-c2560cc1be9a41dc80733fa8c55b00ec6e15a7f0.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginManager.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index ef9638339..0992ccec1 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -1525,15 +1525,6 @@ bool cPluginManager::DisablePlugin(const AString & a_PluginName)
bool cPluginManager::LoadPlugin(const AString & a_PluginName)
{
- PluginMap map = GetAllPlugins();
-
- for(auto plugin_entry : map)
- {
- if(plugin_entry.first == a_PluginName)
- {
- return false;
- }
- }
return AddPlugin(new cPluginLua(a_PluginName.c_str()));
}