SANFL player who wielded a large machete at terrified staff to steal $30,000 did so to pay back a drug debt, a court heard.