From 62059e613ed2a075d9720994e2f90d3f106c770e Mon Sep 17 00:00:00 2001 From: PanFritz Date: Thu, 16 Apr 2015 12:28:58 +0200 Subject: [PATCH] Added perm check for Admin notes notification --- adminnotes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adminnotes.py b/adminnotes.py index b49ac0f..967f2ca 100644 --- a/adminnotes.py +++ b/adminnotes.py @@ -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: