From a87b9eb9d142e4f7e282f98320b0faa14964951e Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 9 Jul 2014 00:24:55 +0200 Subject: [PATCH] fix double plugin header --- motd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/motd.py b/motd.py index 611bb20..42e4c36 100644 --- a/motd.py +++ b/motd.py @@ -12,7 +12,6 @@ def onGetMotdCommand(sender, args): @hook.command("setmotd") def onSetMotdCommand(sender, args): global motd - plugHeader(sender, "MOTD") if sender.hasPermission("utils.setmotd"): if not checkargs(sender, args, 1, -1): return True @@ -20,10 +19,11 @@ def onSetMotdCommand(sender, args): motd = colorify(" ".join(args).replace("\\n", "\n")) broadcast("", plugHeader(name="MOTD")) broadcast("", "&aNew MOTD:&r\n%s" % motd) + broadcast(" ") else: noperm(sender) return True @hook.event("server.ServerListPingEvent") def onServerPing(event): - event.setMotd(motd) \ No newline at end of file + event.setMotd(motd)