Make sure you import import org.bukkit.event.EventPriority when setting
priority