summaryrefslogtreecommitdiffstats
path: root/source/PluginManager.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-01 09:36:33 +0200
committermadmaxoft <github@xoft.cz>2013-08-01 09:36:33 +0200
commit3683601b8b64dae567f90966813ec3b7c2aff2c9 (patch)
tree03922709926f36a03f6d89e3ac0be6c72020e5f0 /source/PluginManager.h
parentMerged in the latest core changes. (diff)
parentProtoProxy: Tab completion logging lists the last item, too (diff)
downloadcuberite-3683601b8b64dae567f90966813ec3b7c2aff2c9.tar
cuberite-3683601b8b64dae567f90966813ec3b7c2aff2c9.tar.gz
cuberite-3683601b8b64dae567f90966813ec3b7c2aff2c9.tar.bz2
cuberite-3683601b8b64dae567f90966813ec3b7c2aff2c9.tar.lz
cuberite-3683601b8b64dae567f90966813ec3b7c2aff2c9.tar.xz
cuberite-3683601b8b64dae567f90966813ec3b7c2aff2c9.tar.zst
cuberite-3683601b8b64dae567f90966813ec3b7c2aff2c9.zip
Diffstat (limited to 'source/PluginManager.h')
-rw-r--r--source/PluginManager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/PluginManager.h b/source/PluginManager.h
index 3832ee455..6bdf87fc7 100644
--- a/source/PluginManager.h
+++ b/source/PluginManager.h
@@ -197,6 +197,11 @@ public: // tolua_export
/// Executes the command split into a_Split, as if it was given on the console. Returns true if executed. Output is sent to the a_Output callback
bool ExecuteConsoleCommand(const AStringVector & a_Split, cCommandOutputCallback & a_Output);
+ /** Appends all commands beginning with a_Text (case-insensitive) into a_Results.
+ If a_Player is not NULL, only commands for which the player has permissions are added.
+ */
+ void TabCompleteCommand(const AString & a_Text, AStringVector & a_Results, cPlayer * a_Player);
+
private:
friend class cRoot;