Fixed plugin variable being null when called in Listener class.