Fixed errors in the bans plugin

Ensures data is of the correct format.