diff options
author | PanFritz <redstonenoobpan@gmail.com> | 2015-04-16 12:28:58 +0200 |
---|---|---|
committer | PanFritz <redstonenoobpan@gmail.com> | 2015-04-16 12:28:58 +0200 |
commit | 62059e613ed2a075d9720994e2f90d3f106c770e (patch) | |
tree | 43d9f4d14dec3495cf13387bbbd85253640ec396 /adminnotes.py | |
parent | 2c1292015b5c8a7520d62d6902932eff7211f52c (diff) |
Added perm check for Admin notes notification
Diffstat (limited to 'adminnotes.py')
-rw-r--r-- | adminnotes.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |