Added perm check for Admin notes notification
This commit is contained in:
@@ -125,6 +125,9 @@ def adminnotes_command(sender, command, label, args):
|
|||||||
|
|
||||||
@hook.event("player.PlayerJoinEvent", "monitor")
|
@hook.event("player.PlayerJoinEvent", "monitor")
|
||||||
def on_an_join(event):
|
def on_an_join(event):
|
||||||
|
if not sender.hasPermission(an_permission):
|
||||||
|
noperm(sender)
|
||||||
|
return
|
||||||
if len(notes) > 0:
|
if len(notes) > 0:
|
||||||
msg(event.getPlayer(), "&cThere are currently %s open notes!" % len(notes))
|
msg(event.getPlayer(), "&cThere are currently %s open notes!" % len(notes))
|
||||||
elif len(notes) == 0:
|
elif len(notes) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user