summaryrefslogtreecommitdiff
path: root/misc.py
diff options
context:
space:
mode:
authorNEMESIS13cz <seke94@seznam.cz>2015-09-12 21:06:49 +0200
committerNEMESIS13cz <seke94@seznam.cz>2015-09-12 21:06:49 +0200
commita7ed59cfbf8e1111dd739b7aecf6d6517c713011 (patch)
tree31e61307f42ec2dc4a38079e9c8f7cb32c4e46d6 /misc.py
parent256bcadf8d10db71d3807f81b93cb8e9d8655078 (diff)
Added a lag warning broadcast command
Diffstat (limited to 'misc.py')
-rw-r--r--misc.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc.py b/misc.py
index 51f68d1..ea7bf9a 100644
--- a/misc.py
+++ b/misc.py
@@ -256,6 +256,13 @@ def on_modules_command(sender, command, label, args):
plugin_header(sender, "Modules")
msg(sender, ", ".join([(("&a" if mod in shared["modules"] else "&c") + mod) for mod in shared["load_modules"]]))
+@hook.command("warn")
+def on_warn_command(sender, command, label, args):
+ broadcast(None, " &b= &2&lLag incoming! &r-%s" % sender.getDisplayName())
+
+@hook.command("warnp")
+def on_warnp_command(sender, command, label, args):
+ broadcast(None, " &b= &2&lPosible lag incoming! &r-%s" % sender.getDisplayName())
""" Something I'm planning for schematics
@hook.event("player.PlayerCommandPreprocessEvent", "low")