summaryrefslogtreecommitdiff
path: root/adminnotes.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-04-16 12:40:30 +0200
committerPanFritz <redstonenoobpan@gmail.com>2015-04-16 12:40:30 +0200
commit7c30af86f22b2db6255de7d722408eeaa53cf3f7 (patch)
tree7e7eecac741fc1807cfa6fc8f413126ef27fbda1 /adminnotes.py
parenta37fb90b0690666f0677cb940f60b6ec045ce0f9 (diff)
Fix missing var
Diffstat (limited to 'adminnotes.py')
-rw-r--r--adminnotes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/adminnotes.py b/adminnotes.py
index 874ea68..35579f9 100644
--- a/adminnotes.py
+++ b/adminnotes.py
@@ -124,9 +124,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)
+def on_an_join(event):
+ if not event.getPlayer().hasPermission(an_permission):
+ noperm(event.getPlayer())
return
if len(notes) > 0:
msg(event.getPlayer(), "&cThere are currently %s open notes!" % len(notes))