summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/main.lua
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-22 02:35:06 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-22 02:35:06 +0200
commitb5c4994475fccfddc111b44cc4b60f3c069be4e7 (patch)
tree4ebb01d19e8a20098624ec62ef51ed179858b88b /MCServer/Plugins/Core/main.lua
parentNow it's possible to only show the plugin's WebAdmin content without the template around it by going to /~webadmin/ instead of /webadmin/ (diff)
downloadcuberite-b5c4994475fccfddc111b44cc4b60f3c069be4e7.tar
cuberite-b5c4994475fccfddc111b44cc4b60f3c069be4e7.tar.gz
cuberite-b5c4994475fccfddc111b44cc4b60f3c069be4e7.tar.bz2
cuberite-b5c4994475fccfddc111b44cc4b60f3c069be4e7.tar.lz
cuberite-b5c4994475fccfddc111b44cc4b60f3c069be4e7.tar.xz
cuberite-b5c4994475fccfddc111b44cc4b60f3c069be4e7.tar.zst
cuberite-b5c4994475fccfddc111b44cc4b60f3c069be4e7.zip
Diffstat (limited to 'MCServer/Plugins/Core/main.lua')
-rw-r--r--MCServer/Plugins/Core/main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core/main.lua b/MCServer/Plugins/Core/main.lua
index 803600431..9aed80ab1 100644
--- a/MCServer/Plugins/Core/main.lua
+++ b/MCServer/Plugins/Core/main.lua
@@ -22,6 +22,7 @@ function Initialize( Plugin )
PluginManager:AddHook(Plugin, cPluginManager.HOOK_BLOCK_DIG)
PluginManager:AddHook(Plugin, cPluginManager.HOOK_KILLED)
PluginManager:AddHook(Plugin, cPluginManager.HOOK_CRAFTING_NO_RECIPE)
+ PluginManager:AddHook(Plugin, cPluginManager.E_PLUGIN_CHAT) -- used in web_chat.lua
Plugin:AddCommand("/help", " - [Page] Show this message", "core.help")
Plugin:AddCommand("/pluginlist", " - Show list of plugins", "core.pluginlist")
@@ -137,6 +138,7 @@ function Initialize( Plugin )
local WebPlugin = Plugin:CreateWebPlugin()
WebPlugin:SetName( Plugin:GetName() )
WebPlugin:AddTab( "Server Settings", HandleRequest_ServerSettings )
+ WebPlugin:AddTab( "Chat", HandleRequest_Chat )
WebPlugin:AddTab( "Playerlist", HandleRequest_PlayerList )
WebPlugin:AddTab( "Whitelist", HandleRequest_WhiteList )
WebPlugin:AddTab( "Permissions", HandleRequest_Permissions )