diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-02 23:59:25 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-02 23:59:25 +0200 |
commit | 8ff22344af60a8f1d7de4501f04c7f659bd5bb08 (patch) | |
tree | db241c9647d8e4c51d49d1f47c1b3236842f3747 /source/Player.h | |
parent | Added the possibility to specify enchantments by name in the constructor and AddFromString() function (diff) | |
download | cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.gz cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.bz2 cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.lz cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.xz cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.tar.zst cuberite-8ff22344af60a8f1d7de4501f04c7f659bd5bb08.zip |
Diffstat (limited to 'source/Player.h')
-rw-r--r-- | source/Player.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Player.h b/source/Player.h index 5617b9785..c582c1802 100644 --- a/source/Player.h +++ b/source/Player.h @@ -93,11 +93,11 @@ public: // tolua_begin - /// Closes the current window, resets current window to m_InventoryWindow - void CloseWindow(void); + /// Closes the current window, resets current window to m_InventoryWindow. A plugin may refuse the closing if a_CanRefuse is true + void CloseWindow(bool a_CanRefuse = true); /// Closes the current window if it matches the specified ID, resets current window to m_InventoryWindow - void CloseWindowIfID(char a_WindowID); + void CloseWindowIfID(char a_WindowID, bool a_CanRefuse = true); cClientHandle * GetClientHandle(void) const { return m_ClientHandle; } |