diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-11-23 02:48:35 +0100 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-11-23 02:48:35 +0100 |
commit | 07adddb81061c6dcc2e17599f5b1019d505fc92c (patch) | |
tree | 48a2c48ac8412c1657e40accaaf2a3de23f9cd64 | |
parent | Merge pull request #2679 from cuberite/vh (diff) | |
parent | Added dash to helpstring output (diff) | |
download | cuberite-07adddb81061c6dcc2e17599f5b1019d505fc92c.tar cuberite-07adddb81061c6dcc2e17599f5b1019d505fc92c.tar.gz cuberite-07adddb81061c6dcc2e17599f5b1019d505fc92c.tar.bz2 cuberite-07adddb81061c6dcc2e17599f5b1019d505fc92c.tar.lz cuberite-07adddb81061c6dcc2e17599f5b1019d505fc92c.tar.xz cuberite-07adddb81061c6dcc2e17599f5b1019d505fc92c.tar.zst cuberite-07adddb81061c6dcc2e17599f5b1019d505fc92c.zip |
-rw-r--r-- | src/Server.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Server.cpp b/src/Server.cpp index 12c45467d..f9727b978 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -597,7 +597,7 @@ void cServer::PrintHelp(const AStringVector & a_Split, cCommandOutputCallback & for (AStringPairs::const_iterator itr = Callback.m_Commands.begin(), end = Callback.m_Commands.end(); itr != end; ++itr) { const AStringPair & cmd = *itr; - a_Output.Out(Printf("%-*s%s\n", static_cast<int>(Callback.m_MaxLen), cmd.first.c_str(), cmd.second.c_str())); + a_Output.Out(Printf("%-*s%s\n", static_cast<int>(Callback.m_MaxLen), cmd.first.c_str(), (" - " + cmd.second).c_str())); } // for itr - Callback.m_Commands[] } @@ -608,14 +608,14 @@ void cServer::PrintHelp(const AStringVector & a_Split, cCommandOutputCallback & void cServer::BindBuiltInConsoleCommands(void) { cPluginManager * PlgMgr = cPluginManager::Get(); - PlgMgr->BindConsoleCommand("help", nullptr, " - Shows the available commands"); - PlgMgr->BindConsoleCommand("reload", nullptr, " - Reloads all plugins"); - PlgMgr->BindConsoleCommand("restart", nullptr, " - Restarts the server cleanly"); - PlgMgr->BindConsoleCommand("stop", nullptr, " - Stops the server cleanly"); - PlgMgr->BindConsoleCommand("chunkstats", nullptr, " - Displays detailed chunk memory statistics"); - PlgMgr->BindConsoleCommand("load <pluginname>", nullptr, " - Adds and enables the specified plugin"); - PlgMgr->BindConsoleCommand("unload <pluginname>", nullptr, " - Disables the specified plugin"); - PlgMgr->BindConsoleCommand("destroyentities", nullptr, " - Destroys all entities in all worlds"); + PlgMgr->BindConsoleCommand("help", nullptr, "Shows the available commands"); + PlgMgr->BindConsoleCommand("reload", nullptr, "Reloads all plugins"); + PlgMgr->BindConsoleCommand("restart", nullptr, "Restarts the server cleanly"); + PlgMgr->BindConsoleCommand("stop", nullptr, "Stops the server cleanly"); + PlgMgr->BindConsoleCommand("chunkstats", nullptr, "Displays detailed chunk memory statistics"); + PlgMgr->BindConsoleCommand("load <pluginname>", nullptr, "Adds and enables the specified plugin"); + PlgMgr->BindConsoleCommand("unload <pluginname>", nullptr, "Disables the specified plugin"); + PlgMgr->BindConsoleCommand("destroyentities", nullptr, "Destroys all entities in all worlds"); #if defined(_MSC_VER) && defined(_DEBUG) && defined(ENABLE_LEAK_FINDER) PlgMgr->BindConsoleCommand("dumpmem", nullptr, " - Dumps all used memory blocks together with their callstacks into memdump.xml"); |