Arena plugin, help needed to make code shorter!