summaryrefslogtreecommitdiff
path: root/player.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-08-17 04:06:34 +0200
committerPanFritz <redstonenoobpan@gmail.com>2015-08-17 04:06:34 +0200
commit039d79fa0c108fb077da622c8eee5ba1579900a8 (patch)
treeb6fd4b6b8e99c1396b8587e936265abd62a39cb4 /player.py
parent2a7b4a05ff05832cbb594566211758930bc41d4b (diff)
remade loginsecurity to use py_player
Diffstat (limited to 'player.py')
-rw-r--r--player.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/player.py b/player.py
index ac1676a..c5dc3e9 100644
--- a/player.py
+++ b/player.py
@@ -1,22 +1,26 @@
from helpers import *
-players = []
+py_players = []
class py_player:
def __init__(player):
self.player = player
- #Properties TODO
- #Example:
+ """
+ Player properties, please add a short description of the property when adding a new one.
+
+
+ """
self.logging_in = False
+ self.login_time = 0
def get_py_player(player):
py_player = players[players.index(player)]
return py_player
-@hook.event("player.PlayerJoinEvent","highest")
+@hook.event("player.PlayerJoinEvent","lowest")
def on_join(event):
player = py_player(event.getPlayer())
players.append(player)