Small fixes and tweaks
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user