Added permissions for warn and warnp

This commit is contained in:
NEMESIS13cz
2015-11-01 14:08:48 +01:00
parent 626ec7f187
commit 438a2f7027

View File

@@ -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)