diff options
author | NEMESIS13cz <seke94@seznam.cz> | 2015-09-12 21:06:49 +0200 |
---|---|---|
committer | NEMESIS13cz <seke94@seznam.cz> | 2015-09-12 21:06:49 +0200 |
commit | a7ed59cfbf8e1111dd739b7aecf6d6517c713011 (patch) | |
tree | 31e61307f42ec2dc4a38079e9c8f7cb32c4e46d6 /misc.py | |
parent | 256bcadf8d10db71d3807f81b93cb8e9d8655078 (diff) |
Added a lag warning broadcast command
Diffstat (limited to 'misc.py')
-rw-r--r-- | misc.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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") |