summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/main.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-13 23:02:22 +0200
committermadmaxoft <github@xoft.cz>2013-08-13 23:02:22 +0200
commitaf645c62c921869a1a6569935000ece3cb909e89 (patch)
treef9947aae502b86073f55d47547ef0084a0bf2ca2 /MCServer/Plugins/Core/main.lua
parentClients are now ticked in cServer first, then in cWorld once they get assigned a world. (diff)
parentAdded ConsoleColors test for testing out linux console color codes. (diff)
downloadcuberite-af645c62c921869a1a6569935000ece3cb909e89.tar
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.gz
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.bz2
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.lz
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.xz
cuberite-af645c62c921869a1a6569935000ece3cb909e89.tar.zst
cuberite-af645c62c921869a1a6569935000ece3cb909e89.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()