Dev #29
12
player.py
12
player.py
@ -4,10 +4,12 @@ py_players = []
|
|||||||
|
|
||||||
class py_player:
|
class py_player:
|
||||||
def __init__(self,player):
|
def __init__(self,player):
|
||||||
self.player = player
|
self.player = player
|
||||||
self.logging_in = False
|
self.logging_in = False
|
||||||
self.login_time = 0
|
self.login_time = 0
|
||||||
|
self.slab_toggle = False
|
||||||
|
self.cauldron_toggle = False
|
||||||
|
|
||||||
def get_py_player(player):
|
def get_py_player(player):
|
||||||
#py_player = py_players[py_players.index(player)]
|
#py_player = py_players[py_players.index(player)]
|
||||||
|
|
||||||
@ -25,4 +27,4 @@ def on_join(event):
|
|||||||
|
|
||||||
@hook.event("player.PlayerQuitEvent","highest")
|
@hook.event("player.PlayerQuitEvent","highest")
|
||||||
def on_leave(event):
|
def on_leave(event):
|
||||||
py_players.remove(get_py_player(event.getPlayer()))
|
py_players.remove(get_py_player(event.getPlayer()))
|
||||||
|
Reference in New Issue
Block a user