summaryrefslogtreecommitdiffstats
path: root/source/PluginManager.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-07-31 11:16:11 +0200
committermadmaxoft <github@xoft.cz>2013-07-31 11:16:11 +0200
commite8a907d89e37bf6eeab8e852c8439ae4899cd114 (patch)
treeb32238a03ec0826d2ffc02da946ea5c12fac3e71 /source/PluginManager.h
parentTab completion packet is handled and sent. (diff)
downloadcuberite-e8a907d89e37bf6eeab8e852c8439ae4899cd114.tar
cuberite-e8a907d89e37bf6eeab8e852c8439ae4899cd114.tar.gz
cuberite-e8a907d89e37bf6eeab8e852c8439ae4899cd114.tar.bz2
cuberite-e8a907d89e37bf6eeab8e852c8439ae4899cd114.tar.lz
cuberite-e8a907d89e37bf6eeab8e852c8439ae4899cd114.tar.xz
cuberite-e8a907d89e37bf6eeab8e852c8439ae4899cd114.tar.zst
cuberite-e8a907d89e37bf6eeab8e852c8439ae4899cd114.zip
Diffstat (limited to '')
-rw-r--r--source/PluginManager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/PluginManager.h b/source/PluginManager.h
index 150132f9f..6bdf87fc7 100644
--- a/source/PluginManager.h
+++ b/source/PluginManager.h
@@ -197,8 +197,10 @@ 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
- void TabCompleteCommand(const AString & a_Text, AStringVector & a_Results);
+ /** 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;