Added permissions for warn and warnp
This commit is contained in:
6
misc.py
6
misc.py
@@ -263,7 +263,10 @@ def on_modules_command(sender, command, label, args):
|
|||||||
amax = 0,
|
amax = 0,
|
||||||
helpSubcmd = True)
|
helpSubcmd = True)
|
||||||
def warn_command(sender, command, label, args):
|
def warn_command(sender, command, label, args):
|
||||||
|
if sender.hasPermission("utils.warn"):
|
||||||
broadcast(None, " &b= &2&lLag incoming! &r-%s" % sender.getDisplayName())
|
broadcast(None, " &b= &2&lLag incoming! &r-%s" % sender.getDisplayName())
|
||||||
|
else:
|
||||||
|
noperm(sender)
|
||||||
|
|
||||||
|
|
||||||
@simplecommand("warnp",
|
@simplecommand("warnp",
|
||||||
@@ -272,7 +275,10 @@ def warn_command(sender, command, label, args):
|
|||||||
amax = 0,
|
amax = 0,
|
||||||
helpSubcmd = True)
|
helpSubcmd = True)
|
||||||
def warnp_command(sender, command, label, args):
|
def warnp_command(sender, command, label, args):
|
||||||
|
if sender.hasPermission("utils.warnp"):
|
||||||
broadcast(None, " &b= &2&lPossible lag incoming! &r-%s" % sender.getDisplayName())
|
broadcast(None, " &b= &2&lPossible lag incoming! &r-%s" % sender.getDisplayName())
|
||||||
|
else:
|
||||||
|
noperm(sender)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user