From ae3fa2b6220b5e5f995c0b9c79db605cddcd5fb5 Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 11 Apr 2012 12:16:13 +0000 Subject: Moved the commands /coords /viewdistance and /regeneratechunks from cServer.cpp to the Core plugin git-svn-id: http://mc-server.googlecode.com/svn/trunk@457 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- Plugins/Core/main.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Plugins/Core/main.lua') diff --git a/Plugins/Core/main.lua b/Plugins/Core/main.lua index 2706a6846..4ef67e424 100644 --- a/Plugins/Core/main.lua +++ b/Plugins/Core/main.lua @@ -37,7 +37,10 @@ function Initialize( Plugin ) Plugin:AddCommand("/top", " - Teleport yourself to the top most block", "core.top") Plugin:AddCommand("/gm", " - [Gamemode (0|1)] - Change your gamemode", "core.changegm") Plugin:AddCommand("/gotoworld", " - Move to a different world!", "core.gotoworld") - + Plugin:AddCommand("/coords", " - Show your current server coordinates", "core.coords") + Plugin:AddCommand("/viewdistance", " - [".. cClientHandle.MIN_VIEW_DISTANCE .."-".. cClientHandle.MAX_VIEW_DISTANCE .."] - Change your view distance", "core.viewdistance") + Plugin:AddCommand("/regeneratechunk", " - - Regenerates a chunk", "core.regeneratechunk") + Plugin:BindCommand( "/help", "core.help", HandleHelpCommand ) Plugin:BindCommand( "/pluginlist", "core.pluginlist", HandlePluginListCommand ) Plugin:BindCommand( "/tp", "core.teleport", HandleTPCommand ) @@ -57,6 +60,9 @@ function Initialize( Plugin ) Plugin:BindCommand( "/top", "core.top", HandleTopCommand ) Plugin:BindCommand( "/gm", "core.changegm", HandleChangeGMCommand ) Plugin:BindCommand( "/gotoworld", "core.gotoworld", HandleGotoWorldCommand ) + Plugin:BindCommand( "/coords", "core.coords", HandleCoordsCommand ) + Plugin:BindCommand( "/viewdistance","core.viewdistance", HandleViewDistanceCommand ) + Plugin:BindCommand( "/regeneratechunk","core.regeneratechunk", HandleRegenerateChunkCommand ) local IniFile = cIniFile("settings.ini") -- cgit v1.2.3