fix plugin title
This commit is contained in:
4
motd.py
4
motd.py
@@ -5,14 +5,14 @@ motd = server.getMotd()
|
|||||||
|
|
||||||
@hook.command("getmotd")
|
@hook.command("getmotd")
|
||||||
def onGetMotdCommand(sender, args):
|
def onGetMotdCommand(sender, args):
|
||||||
plugHeader("MOTD")
|
plugHeader(sender "MOTD")
|
||||||
msg(sender, motd, usecolor=False)
|
msg(sender, motd, usecolor=False)
|
||||||
|
|
||||||
|
|
||||||
@hook.command("setmotd")
|
@hook.command("setmotd")
|
||||||
def onSetMotdCommand(sender, args):
|
def onSetMotdCommand(sender, args):
|
||||||
global motd
|
global motd
|
||||||
plugHeader("MOTD")
|
plugHeader(sender, "MOTD")
|
||||||
if sender.hasPermission("utils.setmotd"):
|
if sender.hasPermission("utils.setmotd"):
|
||||||
if not checkargs(sender, args, 1, -1):
|
if not checkargs(sender, args, 1, -1):
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user