PluginManager::Bind displays more information in the error message.
This commit is contained in:
parent
f0febc2fca
commit
a8ad7c2383
@ -1511,11 +1511,11 @@ bool cPluginManager::BindConsoleCommand(const AString & a_Command, cPlugin * a_P
|
|||||||
{
|
{
|
||||||
if (cmd->second.m_Plugin == NULL)
|
if (cmd->second.m_Plugin == NULL)
|
||||||
{
|
{
|
||||||
LOGWARNING("Console command \"%s\" is already bound internally by MCServer.", a_Command.c_str());
|
LOGWARNING("Console command \"%s\" is already bound internally by MCServer, cannot bind in plugin \"%s\".", a_Command.c_str(), a_Plugin->GetName().c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOGWARNING("Console command \"%s\" is already bound to plugin \"%s\".", a_Command.c_str(), cmd->second.m_Plugin->GetName().c_str());
|
LOGWARNING("Console command \"%s\" is already bound to plugin \"%s\", cannot bind in plugin \"%s\".", a_Command.c_str(), cmd->second.m_Plugin->GetName().c_str(), a_Plugin->GetName().c_str());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user