Added perm check for Admin notes notification

This commit is contained in:
PanFritz
2015-04-16 12:28:58 +02:00
parent 2c1292015b
commit 62059e613e

View File

@@ -125,6 +125,9 @@ def adminnotes_command(sender, command, label, args):
@hook.event("player.PlayerJoinEvent", "monitor")
def on_an_join(event):
if not sender.hasPermission(an_permission):
noperm(sender)
return
if len(notes) > 0:
msg(event.getPlayer(), "&cThere are currently %s open notes!" % len(notes))
elif len(notes) == 0: