summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/main.lua
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-08-13 18:55:46 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-08-13 18:55:46 +0200
commitc52e0e81ea1584e37359ff9e77b00c3e35045ced (patch)
treeb784106b72e245fba95350262d1a394c031a84df /MCServer/Plugins/Core/main.lua
parentMerge pull request #84 from tonibm19/patch-2 (diff)
downloadcuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.gz
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.bz2
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.lz
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.xz
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.tar.zst
cuberite-c52e0e81ea1584e37359ff9e77b00c3e35045ced.zip
Diffstat (limited to 'MCServer/Plugins/Core/main.lua')
-rw-r--r--MCServer/Plugins/Core/main.lua7
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()