diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-14 13:03:13 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-14 13:03:13 +0200 |
commit | 77468f87b75204ed55147761290bb3450ddb1436 (patch) | |
tree | e1ca5f65763b7835d682246a613419277e8f22d1 /MCServer/Plugins/Core/main.lua | |
parent | Alpha sorted PistonBreakable list (diff) | |
parent | Partially fixed tonibm19's mess. (diff) | |
download | cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.gz cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.bz2 cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.lz cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.xz cuberite-77468f87b75204ed55147761290bb3450ddb1436.tar.zst cuberite-77468f87b75204ed55147761290bb3450ddb1436.zip |
Diffstat (limited to 'MCServer/Plugins/Core/main.lua')
-rw-r--r-- | MCServer/Plugins/Core/main.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core/main.lua b/MCServer/Plugins/Core/main.lua index da4d1e84e..28df69cc3 100644 --- a/MCServer/Plugins/Core/main.lua +++ b/MCServer/Plugins/Core/main.lua @@ -7,6 +7,11 @@ Messages = {} Destination = {} --END VARIABLES +-- Configuration +-- Use prefixes or not. +-- If set to true, messages are prefixed, e. g. "[FATAL]". If false, messages are colored. +g_UsePrefixes = true + --COMMENCE AWESOMENESS! function Initialize( Plugin ) PLUGIN = Plugin @@ -62,6 +67,8 @@ function Initialize( Plugin ) PluginManager:BindCommand("/viewdistance", "core.viewdistance", HandleViewDistanceCommand, " [".. cClientHandle.MIN_VIEW_DISTANCE .."-".. cClientHandle.MAX_VIEW_DISTANCE .."] - Change your view distance") PluginManager:BindCommand("/weather", "core.weather", HandleWeatherCommand, " ~ Change world weather") PluginManager:BindCommand("/worlds", "core.worlds", HandleWorldsCommand, " - Shows a list of all the worlds") + PluginManager:BindCommand("/sudo", "core.sudo", HandleSudoCommand, " - Runs a command as a player, ignoring permissions") + PluginManager:BindCommand("/do", "core.do", HandleDoCommand, " - Runs a command as a player.") InitConsoleCommands() |