summaryrefslogtreecommitdiff
path: root/misc.py
diff options
context:
space:
mode:
authorDerrick Lim <BloodStainedCards@gmail.com>2014-12-26 18:48:30 +0800
committerDerrick Lim <BloodStainedCards@gmail.com>2014-12-26 18:48:30 +0800
commit0677f8460d6b97202d5a2f5cd1466a62261974c8 (patch)
tree23dbd7f5052507a340702cc5dbb56b0e4afc88d7 /misc.py
parent41d9f719f9927810526ae57f2a50807e83108737 (diff)
Added /gm - commented for now
Diffstat (limited to 'misc.py')
-rw-r--r--misc.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/misc.py b/misc.py
index d91a82c..dc9b95b 100644
--- a/misc.py
+++ b/misc.py
@@ -72,6 +72,34 @@ def on_sudo_command(sender, args):
#
+# /gm - custom gamemode command with extra perms for greater control
+#
+
+
+#@hook.command("gm")
+#def on_gm_command(sender, args):
+# mode = args[0]
+# target = args[1]
+# if target and not sender.hasPermission(utils.gm.other):
+# msg(sender, "You do not have permission to change the gamemode of other players")
+# else:
+# target = sender
+# if mode < 0 or mode > 3:
+# msg(sender, "That gamemode does not exist!")
+# elif mode == 0 and sender.hasPermission(utils.gm.0):
+# runas(server.getConsoleSender(), "gamemode 0 " % target)
+# elif mode == 1 and sender.hasPermission(utils.gm.1):
+# runas(server.getConsoleSender(), "gamemode 1 " % target)
+# elif mode == 2 and sender.hasPermission(utils.gm.2):
+# runas(server.getConsoleSender(), "gamemode 2 " % target)
+# elif mode == 3 and sender.hasPermission(utils.gm.3):
+# runas(server.getConsoleSender(), "gamemode 3 " % target)
+# else:
+# msg(sender), "You do not have access to that gamemode")
+# return True
+
+
+#
# Clicking redstone_sheep with shears will drop redstone + wool and makes a moo sound
#