Try this:
local config = {
minLevel = 200,
firstPosition = Position(100, 100, 7),
secondPosition = Position(100, 100, 7)
}
local treePass = Action();
function treePass.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getLevel() >= config.minLevel then...