I think he'll get teleported every time he login as long as he is not premium.
Can't think of any other way to do it, Maybe setting a storage and check if player doesn't have it then teleport him?
@bpm91 If he got teleported every time then add this
Lua:
player:setStorageValue(yourstoragehere, 1)
and change this from
Lua:
if player:getPremiumEndsAt() < os.time() then
to
Lua:
if player:getPremiumEndsAt() < os.time() and player:getStorageValue(yourstoragehere) ~= 1 then
But then you'll have to remove the storage when player buys premium in your NPC, Talkaction, Action or any other script the player is able to obtain premium through, Using something like this.
Lua:
player:setStorageValue(yourstoragehere, -1)