add player teleport event to switch gamerule