Small fixes and tweaks

This commit is contained in:
Dico
2014-07-19 01:51:29 +02:00
parent 231a5b8322
commit 775bdc6205

View File

@@ -7,9 +7,11 @@ ff_perm = "utils.forcefield"
pass_perm = "utils.forcefield.ignore"
ff_prefix = "&8[&bFF&8] "
ff_users = []
whitelists = {} # {ff_owner_id: [white, listed, ids]}
fd = 6 # forcefield distance
Xv = 2.95 / fd # used in move_away(), this is more efficient.
whitelists_filename = "plugins/redstoner-utils.py.dir/files/forcefield.json"
whitelists = {} # {ff_owner_id: [white, listed, ids]} (Adding file usage later, should be simple but just not yet.)
# /ff admin is a future option I might implement
@@ -144,10 +146,8 @@ def forcefield_header(player, message):
@hook.event("player.PlayerMoveEvent")
def on_move(event):
if not ff_users:
return
if ff_users:
player = event.getPlayer()
log(player)
if is_creative(player):
player_id = uid(player)